Paging Paging SQL Server MySQL Oracle paging MySQL, ORACLE, SQL SERVER paging query
A, MySQL
SELECT * FROM table_name
LIMIT 0,5 ;
二、ORACLE
SELECT * FROM
(
SELECT t.* , rownum r FROM table_name t WHERE rownum <= end_page
)
WHERE r > start_page ;
Three, SQL Server
SELECT TOP start_page , end_page * FROM table_name ;
(Note: These are the easiest to achieve, according to the actual business needs, adjust!)