oracle中的sql分页查询

java例:

sb.append("select rownum row_no_nmb,sb3.*from(select sb2.*,rownum row2b from (").append(sql).append(")sb2)sb3 where row2b between ").append(begin).append(" and ").append(end);

sql例:

select rownum roe_no_nmb,sb3.* from (select sb2.*,rownum row2b from (select * from t_business_001_main) sb2) sb3 where row2b between 11 and 12;

你可能感兴趣的:(oracle中的sql分页查询)