分页代码

http://www.blogjava.net/joessy/articles/1398.html

 

select * from(
select a.*,rownum as rn from (
select t.city_code as city_code,t2.city_name as city_name,
       t.dept_id as dept_id,t.dept_name as dept_name,
       t.dept_parent_id as dept_parent_id,t1.dept_name as dept_parent_name
from bb_recommend_workno_dept_t t,bb_recommend_workno_dept_t t1,bs_city_id_t t2
where t.dept_parent_id=t1.dept_id and t.city_code=t2.city_code(+)
)a)b
where b.rn between 11 and 20;

你可能感兴趣的:(html,.net)