sqlite3中的约束如下:
CREATE TABLE CheckTable (rowId integer primary key autoincrement,name text not null,address text default "China",userId text unique,age integer check(age >= 0));
sqlite3中的约束如下:
CREATE TABLE CheckTable (rowId integer primary key autoincrement,name text not null,address text default "China",userId text unique,age integer check(age >= 0));