search

Home  >  Q&A  >  body text

为什么删除了主键primary之后唯一约束会变成主键约束?

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

一辆想出轨的无轨电车一辆想出轨的无轨电车2983 days ago993

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:29:30

    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.

    reply
    0
  • 巴扎黑

    巴扎黑2016-12-21 17:47:52

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

    reply
    0
  • Cancelreply