从结果中删除一些行
在 Oracle 12g +中
SELECT Id, Col1
FROM TableName
ORDER BY Id
OFFSET 5 ROWS;
在早期版本中
SELECT Id,
Col1
FROM (SELECT Id,
Col1,
row_number() over (order by Id) RowNumber
FROM TableName)
WHERE RowNumber > 20
在 Oracle 12g +中
SELECT Id, Col1
FROM TableName
ORDER BY Id
OFFSET 5 ROWS;
在早期版本中
SELECT Id,
Col1
FROM (SELECT Id,
Col1,
row_number() over (order by Id) RowNumber
FROM TableName)
WHERE RowNumber > 20