开发者

Get access to the inserted row after doing an insert using sqlite3_exec on iphone?

开发者 https://www.devze.com 2023-02-28 22:21 出处:网络
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 t

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

0

精彩评论

暂无评论...
验证码 换一张
取 消