Dbeaver中,连接Oracle数据库,如果调用存储过程,且存储过程返回了游标,那么如何查看游标的数据呢?
例如
create or replace procedure sp_aaa(
p_out_cur out sys_refcursor,
p_code in char
p_name in char
) as begin
open p_out_cur for select * from table where code = p_code and name = p_name
end sp_aaa
正常调用 call sp_aaa(?, 'abc', 'xyz') 后,在DBeaver结果网格中,会看到类似下面的输出:
如果想看p_out_cur对应的数据集,需要点击右边的面板,数值查看器,网格,就可以看到结果集了。例如: