服务器: 消息 1505,级别 16,状态 1,行 1
CREATE UNIQUE INDEX 终止,因为发现了索引 ID 1 的重复键。最重要的主键为 'type 6c, len 9'。
服务器: 消息 1750,级别 16,状态 1,行 1
未能创建约束。请参阅前面的错误信息。
语句已终止。
这个该怎么解决啊?急!!

解决方案 »

  1.   

    这是什么'type 6c, len 9'重复啊
      

  2.   

    select * from tb t where exists(
    select 1 from tb where id=t.id group by id having count(1)>1
    )
    查询后删除一个重复的
      

  3.   

    select * from  table Where   id   Not   In   (Select   min(id)   As   id   from   table   Group   By   id) 
    查询没有重复值啊
      

  4.   


    constraint键在哪个列(或多列),就是哪列(或多列)有重复