你在MMC中删除时,因为它要去找能确定你要删除的记录的条件,就象 delect table where aa=xx and bb=YY 但是这个条件在表中有两条记录,所以系统认为你的条件不充分,所以它不知道应该把两条中的哪一条删除,所以出现上面的提示。 TRY: select * into #temp from table where ........ --条件选出那两条 delete table where.......insert into table select top1 * from #temp
最好在提交按钮里包含一个检查功能。在后台数据库上,建唯一索引,然后提交时,出现重复行,必然出错。根据出错,进行提示。这样唯一性更能保证。
还有一个问题,在我修改重复行的数据时
系统提示:键列信息不足或不正确。更新影响到过多的行。
我FAINT了快!help again!
delect table where aa=xx and bb=YY
但是这个条件在表中有两条记录,所以系统认为你的条件不充分,所以它不知道应该把两条中的哪一条删除,所以出现上面的提示。
TRY:
select * into #temp from table where ........ --条件选出那两条
delete table where.......insert into table
select top1 * from #temp