标签:例子 oracle 语法 rect person tor ceil mysql size acl
SELECT TOP number|percent column_name(s) FROM table_name
SELECT column_name(s) FROM table_name LIMIT number
SELECT * FROM Persons LIMIT 5
SELECT column_name(s) FROM table_name WHERE ROWNUM <= number
SELECT * FROM Persons WHERE ROWNUM <= 5
SELECT *
FROM (select rownum as r,directory,content from sql) tab
WHERE tab.r>ceil(sum/pagesize)*(page-1) and tab.r<=ceil(sum/pagesize)*(page-1)
sum--总条数
pagesize--一页多少条
page--第几页
标签:例子 oracle 语法 rect person tor ceil mysql size acl
原文地址:https://www.cnblogs.com/xiao-si-chao/p/9322706.html