6、oracle迁移到postgres-分页问题
目录
- oracle迁移到postgres-分页问题
- 1、oracle使用
rownum
进行分页 - 2、postgres使用
limit
进行分页 - 3、使用
FETCH
统一的分页方式
- 1、oracle使用
oracle迁移到postgres-分页问题
1、oracle使用rownum
进行分页
select * from ss_stu where rownum <= 10;
2、postgres使用limit
进行分页
select * from ss_stu limit 10;
3、使用FETCH
统一的分页方式
select * from ss_stu FETCH NEXT 1 ROWS ONLY