--声明record变量之前必须先定义
set serveroutput on
declare
  type mytype is record (
    a trp_advp_copy.groupname%type,
    b trp_advp_copy.projectname%type
  );
  c mytype;
begin
  select groupname,projectname into c from trp_advp_copy where id = 942371;
  dbms_output.put_line(c.a||'---'||c.b);
end;

Oracle中record变量的使用

相关文章:

  • 2022-02-17
  • 2021-07-03
  • 2022-12-23
  • 2021-06-01
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-05-04
  • 2022-12-23
  • 2021-12-30
  • 2022-01-16
  • 2021-10-27
相关资源
相似解决方案