postgreSQL查询某记录前N行:SELECT * FROM table LIMIT N;postgreSQL查询某记录最后后N行:SELECT * FROM table order by id desc LIMIT N;postgreSQL查询某记录从M行开始N行:SELECT * FROM table LIMIT N OFFSET M;