Small. Fast. Reliable.
Choose any three.

列约束

CONSTRAINT name PRIMARY KEY DESC conflict-clause AUTOINCREMENT ASC NOT NULL conflict-clause UNIQUE conflict-clause CHECK ( expr ) DEFAULT ( expr ) literal-value signed-number COLLATE collation-name foreign-key-clause GENERATED ALWAYS AS ( expr ) VIRTUAL STORED

用法 :   column-def

参考:   冲突子句   expr   外键子句   文字值带   符号的数字

另请参见:   gencol.html    lang_altertable.html    lang_createtable.html