关于使用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); oracle简单语句求助 高手来看看,这个sql怎么写?很纠结啊!! 问个弱弱的问题。。。 求一个复杂的SQL语句,统计用的 谁可以帮我把下面的程序转化为plsql程序,着急,多谢 orcale 中 is not null 与 <>null 的区别? 如何在SQL * PLUS中启动远程服务器中的数据库 如何把已经备份的*.dmp文件导回到一个新的Oracle数据库中? oracle for linux 是否免费? 数据库同步的那些事儿? 求一查询语句! 求一个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);