首页 >> 其它语言

Sqlite插入后返回记录的id

2012-06-26 09:57:14

Sqlite插入后返回记录的id

在插入语句后面多加 

select last_insert_rowid()

语句就可以返回最后插入的数据的ID