摘要: 一、约束 1.非空约束 not null 2.主键约束 create table t1( id int not null primary, name varchar(20) not null ) 注意:不能为空,不能重复,一个表中只能有一个主键 3.唯一约束 create table t2( id 阅读全文
posted @ 2017-12-11 18:50 兰博~~ 阅读(255) 评论(0) 推荐(0) 编辑