首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 数据反复,只取一条

2012-07-02 
oracle 数据重复,只取一条oracle中重复记录只取其中一条select * from table1 where rowidany(select max

oracle 数据重复,只取一条

oracle中重复记录只取其中一条select * from table1 where rowid=any(select max(rowid) from table1 group by field1)或者select * from table1 where rowid in (select max(rowid) from table1 group by field1)

热点排行