欢迎投稿

今日深度:

mysql各种约束,mysql约束

mysql各种约束,mysql约束


constraint 外键别名 foreign key(a,b) references 外部表名(a,b);数据类型要保持一致
not null
unique
primary key(主键名)
auto_increment一个表只能有一个字段使用此约束且该字段必须为主键的一部分,约束的字段可以是任何整数类型。
zerofill默认自动添加无符号
unsigned
default

www.htsjk.Com true http://www.htsjk.com/shujukunews/8038.html NewsArticle mysql各种约束,mysql约束 constraint 外键别名 foreign key(a,b) references 外部表名(a,b);数据类型要保持一致not nulluniqueprimary key(主键名)auto_increment一个表只能有一个字段使用此约束且该字段必须...
评论暂时关闭