sqlite constraint

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中的约束一旦创建就不能通过alter之类的语句修改,只能重新建表。

你可能感兴趣的:(sqlite constraint)