mysql、hive、clickhouse
select * from tableName LIMIT ?,?
Explanation: The first one? What page is the question mark, and the second one? The question mark is the number per page
oracle paging query
SELECT * FROM ( SELECT a.*, ROWNUM rn FROM tableName a WHERE ROWNUM <= ( ?+? ) ) WHERE rn > ?";
The first question mark: start subscript
The second question mark: number per page
The third question mark: start subscript