查询数据库中的第十到十五条记录?

请详细回答,回答不好没分给的!
2025-02-26 06:25:31
推荐回答(3个)
回答1:

select first_name from ( select first_name ,rownum numfrom s_emp where rownum between 1 and 15) where num>=10 andnum<=15;s_emp 是表名first_name是要查询的字段。

回答2:

select * from 表名 where rownum>10 and rownum<15

回答3:

select * from 表名 where rownum>10 and rownum<=15