今天在练习oracle查询表数据想查询某一个区间的数据:
假设我想查找表:hs_test
1.查询10~50之间的数据:
select * from (select t.*,rownum num from hs_test t) where num > 10 and num < 50
2.查询前100条数据:
select * from hs_test where rownum>101
我写的应该大家能看懂吧。
今天在练习oracle查询表数据想查询某一个区间的数据:
假设我想查找表:hs_test
1.查询10~50之间的数据:
select * from (select t.*,rownum num from hs_test t) where num > 10 and num < 50
2.查询前100条数据:
select * from hs_test where rownum>101
我写的应该大家能看懂吧。