java Android对于没有ROWID的表,insert便利方法返回的值是多少?
Note This Question is intended to be a share your knowledge, Q&A-style.
SQLite默认创建一个隐藏列,即rowid,该列将被分配一个唯一的64位带符号整数值
然而,自SQLite版本3.8.2以来,SQLite一直支持不带ROWID的子句,这导致忽略了ROWID
如果插入成功,结果会是什么
即,从SQLITE数据库insert系列(insert、insertOrThrow和insertWithOnConflict)返回的长数据,如下所示:-
the row ID of the newly inserted row, or -1 if an error occurred
共 (0) 个答案