oracle limit

You cannot use limit directly in oracle, you need to use the built-in rownum to calculate the number of rows.

eg. 用法:
SELECT * FROM TABLE_NAME WHERE rownum<20 and rownum>=10;

select * from TEST where rownum<=5  minus  select * from TEST where rownum<2

Use the set minus operator minus, which returns records that appear in the first select but not in the second select

Guess you like

Origin blog.csdn.net/qq_43985303/article/details/130885043