SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM bhis_gz_zg_360007002204.v_query_lis_pcas) A ) WHERE RN BETWEEN 1 AND 10
11 20
21 30
oracle没有limit,有rownum记录行号, 需要参数都需要变, BETWEEN i*n-n+1 AND i*n;查询计算:当前页码:i,当前页面大小:n
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM bhis_gz_zg_360007002204.v_query_lis_pcas) A ) WHERE RN BETWEEN 1 AND 10
11 20
21 30
oracle没有limit,有rownum记录行号, 需要参数都需要变, BETWEEN i*n-n+1 AND i*n;查询计算:当前页码:i,当前页面大小:n