开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜