桃花长相依
可以写成:p_sqlcount: select count(1) from jtglpt_t_dm_b这个地方没有使用绑定变量,通用的分页存储过程,后果很严重v_sql :='SELECT * '|| ' FROM (select t1.*, ROWNUM r '|| ' FROM ('|| p_sql|| ' ) t1 where rownum <='|| TO_CHAR (v_end)|| ') t2 where r >='|| TO_CHAR (v_start);OPEN r_cursor FOR v_sql;