sqlite简单笔记

五种约束需要注意的地方

1、自增使用:autoincrement

 

2、约束必须进行后面处理:unique(字段[多个可以以逗号分开])

3、外键必须放后面:foreign key(字段引用) references 被引用表名(被引用字段);

 

4、检查约束必须放后面:check(条件)

5、默认约束:default '默认值'

https://blog.csdn.net/u014084081/article/details/43114617

https://blog.csdn.net/qwezhaohaihong/article/details/78326944

猜你喜欢

转载自www.cnblogs.com/weibanggang/p/9544573.html