|
-
April 4th, 2005, 01:59 AM
#1
SQLite Query!!!!
Hi all,
Can anybody help me to create query , to find out the key_id(primary key)
for the last saved record.
Key_id is not sequential it can be any random no.
Any help will be appreciated.
Thanx
-
April 4th, 2005, 02:14 AM
#2
Re: SQLite Query!!!!
well if you will search MSDN or even MS SQL Book, you will find the way to create a stored procedure which will return the ID after insertion.
be a little lazy to do a search. 
Andy
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 4th, 2005, 02:23 AM
#3
Re: SQLite Query!!!!
use : sqlite_last_insert_rowid()
http://www.sqlite.org/faq.html#q1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|