更新一个无关紧要的字段提示"不能在具有唯一索引***插入重复键的行。

[复制链接]
查看11 | 回复1 | 2016-6-3 03:24:01 | 显示全部楼层 |阅读模式
acceptdate有重复值?看看SQL codeselect dateadd(day,datediff(day,acceptdate,getdate()) , acceptdate) from crm_sv_servicewhere clientid in(select clientid from crm_od_header_archivewhere inputd……日期有重复值没有啥关系的,他设置的为非聚合索引这个表的主键是ID...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行