我正在尝试计算将从 sql 语句返回的行数。此语句在游标中
我的代码是这样的
DECLARE
v_counter int := 0 ;
select count(*) into v_counter from (
cursor get_sth is select * from table1 where condit..) ;
BEGIN
DBMS_OUTPUT.PUT_LINE (v_counter);
END ;
/
Run Code Online (Sandbox Code Playgroud)
它不起作用
有没有其他解决方案让我计算游标结果的行数,我真的很菜
感谢帮手