如何将表中重复的多余数据删除 delete from 表 where id not in(select min(id) from 表 group by 字段1,字段2 ) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete from tablename awhere exists(select 1 from tablename where a.id<id and a.col1=col1 and a.col2=col2 ) select 1 from tablename是什么意思?? 请高手帮忙:想编写一个存储过程,作用删除表上的所有索引 存储过程参数判断为空问题 两个表的数据更新问题,怎么写效率最高 sql 分组后取每组按时间排序的前三条记录写法 求助UPDATE 更新.. 触发器的问题,会的朋友帮帮我。 如何写这个sql语句 等大虾 谁能给我详细说一下,我怎么将Access 2000中罗斯文数据库导入到SQL Server中,麻烦详细点! SQL Server2005 十万火急!!!一个关于在vfp的form中设置功能键,如果能够解答,送你三百分,绝不食言。 存储过程中定义集合的问题!!各位高手们帮忙啊!! 结果排序
where exists(select 1 from tablename where a.id<id and a.col1=col1 and a.col2=col2 )