android的sqlite主键设置方法
网上的那种语法貌似有问题,老是创建不成功。
db.execSQL(CREATE_TABLE + TABLE_CONTENT + " ( "
+ "ID INTEGER, " + "CONTENT TEXT, IS_UPLOAD INTEGER, " + "CREATE_TIME LONG ,"
//+ "UNIQUE (ID, " + ACCOUNT_ID + ")"
+ " PRIMARY KEY(\"ID\"))");改成上面这种,OK!
作者 邓华
补充:移动开发 , Android ,