I am using sqlite3 in my applicat开发者_如何学编程ion and was wondering if there is any better way to access a row that has just been inserted using sqlite3_exec other than just doing a select after the insert?
Have you seen the last_insert_rowid() function ? http://www.sqlite.org/lang_corefunc.html#last_insert_rowid
精彩评论