17,086
社区成员
发帖
与我相关
我的任务
分享
select *
from (select ti.id_card_, ti.name_
from t_teller_info_ ti, adm_agency_ a
where ti.org_code_ = a.id_
and a.level_code_ like '%/6696/%')
where rownum < = 10
select *
from (select ti.id_card_, ti.name_, rownum rn
from t_teller_info_ ti, adm_agency_ a
where ti.org_code_ = a.id_
and a.level_code_ like '%/6696/%' order by 唯一主键)
where rn > 10
and rn < = 20
select *
from (select ti.id_card_, ti.name_,rownum
from t_teller_info_ ti, adm_agency_ a
where ti.org_code_ = a.id_
and a.level_code_ like '%/6696/%') t
where rownum < = 10
看这样行不行。select ti.id_card_, ti.name_
from t_teller_info_ ti, adm_agency_ a
where ti.org_code_ = a.id_
and a.level_code_ like '%/6696/%' and rownum < = 10;
select ti.id_card_, ti.name_
from t_teller_info_ ti, adm_agency_ a
where ti.org_code_ = a.id_
and a.level_code_ like '%/6696/%' where rownum < = 10;