Click to See Complete Forum and Search --> : SQLite Query!!!!


shekhar_dawer
April 4th, 2005, 01:59 AM
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

Andy Tacker
April 4th, 2005, 02:14 AM
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

hspc
April 4th, 2005, 02:23 AM
use : sqlite_last_insert_rowid()
http://www.sqlite.org/faq.html#q1 (http://www.sqlite.org/faq.html#q1)