前提:表中本身具有一个类似于[Fid] Int identity(1,1)的字段,如果没有加上他 Delete From tTarget Where Not Exists (Select 1 From (Select MIn(Fid) Fid,FName From tTarget Group By FName) t2 Where t1.Fid=t2.Fid ) eg: Create Table t1(Fid int identity(1,1) ,Fname Varchar(50))
删除表中重复记录
最新推荐文章于 2021-04-03 20:07:44 发布

794

被折叠的 条评论
为什么被折叠?



