android创建表主键为自增的解决方案db.execSQL(create table user (id INTEGER primary key autoincremen
android创建表主键为自增的解决方案
db.execSQL("create table user (id INTEGER primary key autoincrement,name varchar(20))");
需要注意的是id类型,必须为integer才有效,int型是不可以的
android创建表主键为自增的解决方案
db.execSQL("create table user (id INTEGER primary key autoincrement,name varchar(20))");
需要注意的是id类型,必须为integer才有效,int型是不可以的