sqlite中的自增关键字:AUTO_INCREMENT、INTEGER PRIMARY KEY与AUTOINCREMENT
AUTO_INCREMENT不生效的问题
在sqlite中,自增字段需要使用关键字INTEGER PRIMARY KEY
buffer.append("CREATE TABLE userIntegralDetail (_id INTEGER PRIMARY KEY,")
.append("userid char(32),")
.append("Num char(11),")
.append("Type char(11),")
.append("timestamp char(13))");
db.execsql(buffer.toString());
原文链接:https://www.f2er.com/sqlite/200804.html