Oracle分页查询

前端之家收集整理的这篇文章主要介绍了Oracle分页查询前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

oracle分页查询

SELECT
	*
FROM
	(
		SELECT
			ROWNUM AS rowno,t.*
		FROM
			tablename t
		WHERE
			hire_date BETWEEN TO_DATE ('20060501','yyyymmdd')
		AND TO_DATE ('20060731','yyyymmdd')
		AND ROWNUM <= 20
	) table_alias
WHERE
	table_alias.rowno >= 10;

猜你在找的Oracle相关文章