为什么删除了主键primary之后唯一约束会变成主键约束?
一辆想出轨的无轨电车
一辆想出轨的无轨电车 2016-12-21 17:47:37
0
2
931

为什么删除了主键primary之后唯一约束会变成主键约束?
还有为什么删除不了?必须要有约束们

一辆想出轨的无轨电车
一辆想出轨的无轨电车

reply all(2)
数据分析师

Why does the unique constraint become a primary key constraint after deleting the primary key? -PHP Chinese website Q&A-Why does the unique constraint become a primary key constraint after deleting the primary key? -PHP Chinese website Q&A

Please watch and learn.

巴扎黑

主键约束和唯一约束都具有唯一标识数据表记录的作用,数据表记录千千万万,必然存在标志唯一性的字段,主键约束存在时,主键起标识唯一性作用,主键删除后,从一个或多个唯一约束中顺序选择其中一个作为唯一标识,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!