oracle数据重复,只取一条

--方法一
select * from tb_supply where rowid=any(select max(rowid) from tb_supply group by phone_id)
--方法二
select * from tb_supply where rowid in (select max(rowid) from tb_supply group by phone_id)
posted on 2011-07-19 16:06  Ruthless  阅读(30634)  评论(0编辑  收藏  举报