postgresql数据库:
select * from table limit 10 offset 0;
offset 取值得起始位 0表示从第一条开始limit 共取多少条 10表示查询10条数据
MySql数据库:
select * from table LIMIT 5,10; #返回第6-15行数据 (一般(n , m)指的是从n+1开始到m结束)
select * from table LIMIT 5; #返回前5行
select * from table LIMIT 0,5; #返回前5行