当前位置:网站首页>2021.7.22 note constraints
2021.7.22 note constraints
2022-07-27 18:33:00 【It's food, not shellfish】
summary

Constraint classification

not null
Set when creating table , After setting, if a single element is inserted, an error will be reported

unique
Limit the uniqueness of the value , however null No repetition


Two level constraint unique

not null And unique Joint constraint

Primary key
primary key, Cannot repeat and as null
There can only be one primary key
Can unite primary key


ps:auto_increment Is self increasing , It can be used with primary keys , Realize automatic generation of self incrementing primary key value
Foreign keys




Storage engine


边栏推荐
猜你喜欢
随机推荐
C杂讲 链表初讲
[MIT 6.S081] Lab 11: networking
Random talk on GIS data (V) - geographic coordinate system
Deep learning: GCN case
File path read
[learning notes] solutions to hot account problems
On recommend mechanism in distributed training
Redis网红高频面试题三连:缓存穿透?缓存击穿?缓存雪崩?
2021.7.13笔记 子查询
华为Mate30 Pro 5G拆解:自研芯片占比过半,美系芯片依然存在!
[mit 6.s081] LEC 3: OS organization and system calls notes
Deep recognition: thesis reading_ 2s-agcn cvpr2019 (two stream adaptive graph convolution network based on skeleton action recognition)
Let's move forward together, the 10th anniversary of Google play!
微信小程序获取手机号
Announcing the acquisition of 30% shares of Wenye, what is the general intention of Dalian United?
文件路径读取
记一次 .NET 某智慧物流 WCS系统 CPU 爆高分析
[MIT 6.S081] Lab 6: Copy-on-Write Fork for xv6
[MIT 6.S081] Lec 10: Multiprocessors and locking 笔记
超实用!阿里P9私藏的Kubernetes学习笔记,看完直呼NB
![[MIT 6.S081] Lab 6: Copy-on-Write Fork for xv6](/img/ca/e8c0827b13805c7c74cc41bf84c6ff.png)
![[mit 6.s081] LEC 8: page faults notes](/img/e2/0f5332dd9d2b439bcf29e87a9fa27f.png)



![[MIT 6.S081] Lec 9: Interrupts 笔记](/img/b6/a8d39aa7ede4eb1c5a74e6d15b3b1c.png)


