关于使用distinct的问题 distinct只要三个字段中有一个不同,就会取出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 补充一下,数据库的结构向下面这样列1 列2 列3001 asc qwe002 shd sdsa003 asa sds001 asc qwe 想要的到的数据是下面的数据001 asc qwe002 shd sdsa003 asa sds 是删除重复记录?用rowid可以不? select distinct clo1,clo2,clo3 from table;删除重复:delete from table a where a.rowid > (select min(b.rowid) from table b where b.col1=a.col1 and b.col2=a.col2 and b.col3=a.col3); 字符串字段排序问题。。。 请问变量为NULL时如何查询 高分求一句SQL,在线等,着急,多谢 SQL語句優化--not in oracle导入问题 怎么在PB中调用ORACLE的函数???? 如何从一个dmp文件中提取一个表并以dbf文件存储? 在线求助! 转移数据库的创建!!!!(分数可以再加) sql删除唯一约束Unique 求一查询语句! 求一个sql语句
列1 列2 列3
001 asc qwe
002 shd sdsa
003 asa sds
001 asc qwe
想要的到的数据是下面的数据
001 asc qwe
002 shd sdsa
003 asa sds
删除重复:
delete from table a
where a.rowid > (select min(b.rowid) from table b
where b.col1=a.col1
and b.col2=a.col2 and b.col3=a.col3);