当前位置:网站首页>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


边栏推荐
- [mit 6.s081] LEC 4: page tables notes
- After being "expelled" from bitland, the Jank group said for the first time: it will return as soon as possible through legal channels!
- Guoju spent $1.8 billion to acquire its competitor KEMET, and the transaction may be completed in the second half of next year
- 动态链表4单向循环链表(LoopSingle实现)
- Read only mode of buffer
- 2021.7.12笔记 内外连接
- Deep recognition: thesis reading_ 2s-agcn cvpr2019 (two stream adaptive graph convolution network based on skeleton action recognition)
- Linked list storage structure of dynamic linked list 2 stack (linkedstack Implementation)
- [MIT 6.S081] Lec 3: OS organization and system calls 笔记
- rsa加解密(兼容微信小程序环境)
猜你喜欢

Deep learning - VIDEO behavior recognition: paper reading - two stream revolutionary networks for action recognition in videos

超实用!阿里P9私藏的Kubernetes学习笔记,看完直呼NB

Common commands of database 2

Chained storage structure of dynamic linked list 3 queue (linkedqueue Implementation)

2021.7.12笔记 内外连接

Deep learning: Gan case exercise -minst handwritten digits

1. opencv图片基础操作

2021.7.22笔记 约束

3. opencv几何变换

multi-table query
随机推荐
2021.8.7笔记 servlet
携手三星,vivo将推Exynos980双模5G手机!
Deep learning: a survey of behavior recognition
江苏华存首发PCIe 5.0 SSD主控:台积电12nm工艺,2020年量产
Three consecutive high-frequency interview questions of redis online celebrity: cache penetration? Cache breakdown? Cache avalanche?
View port PID and end process
深度学习:GCN案例
[MIT 6.S081] Lab 11: networking
[MIT 6.S081] Lab 11: networking
@Considerations for query of convert annotation in JPA
[MIT 6.S081] Lec 4: Page tables 笔记
Please ask the great God a question, flinkcdc, the datetime field in synchronous MySQL will become a timestamp. Has anyone ever encountered it
Super practical! After reading the kubernetes study notes hidden by Alibaba P9, call NB directly
Huawei mate30 Pro 5g disassembly: self developed chips account for more than half, and American chips still exist!
黑客用激光攻击,百米外就能激活语音助手
[MIT 6.S081] Lab 3: page tables
[mit 6.s081] LEC 6: isolation & system call entry/exit notes
[MIT 6.S081] Lab8: locks
[mit 6.s081] LEC 1: introduction and examples notes
2021.7.31笔记 视图