`
271788203
  • 浏览: 483353 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

oracle SQL语句

阅读更多

查找重复记录:

select names,num 
from test 
where rowid != (select max(rowid) 
from test b 
where b.names = test.names and
b.num = test.num)

 查找表TEST中时间最新的前10条记录:

select * from (select * from test order by dates desc) where rownum < 11
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics