declare
  sqlstr varchar2(500);
  type vv is ref cursor;
  ev vv;
  v varchar2(50);
begin
  sqlstr:='select username from ysnk_employees';
  open ev for sqlstr;
  fetch ev into v;
  dbms_output.put_line(v);
end;
==========================================================
游标变量在定义是不指定固定的SQL语句,在Open时才指定SQL语句

相关文章:

  • 2021-08-25
  • 2021-11-25
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-10-28
  • 2021-10-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
  • 2021-08-01
相关资源
相似解决方案