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之类的语句改动。仅仅能又一次建表。

posted @ 2017-07-27 09:37  cxchanpin  阅读(349)  评论(0编辑  收藏  举报