摘要:
1. 最好还是利用分析函数 row_number() over ( partition by col1 order by col2 )比如想取出100-150条记录,按照tname排序select tname,tabtype from ( select tname,tabtype,row_number() over ( order by tname ) rn from tab ) where rn between 100 and 150;2. 直接使用rownum 虚列 select tname,tabtype from ( select tname,tabtype,rownum rn f.. 阅读全文
posted @ 2012-01-16 16:27
kudosharry
阅读(144)
评论(0)
推荐(0)
浙公网安备 33010602011771号