--%type表示与指定列的数据类型相同
set serveroutput on
declare
  a trp_advp_copy.groupname%type;
  b trp_advp_copy.projectname%type;
begin
  select groupname,projectname into a,b from trp_advp_copy where id = 942371;
  dbms_output.put_line(a||'---'||b);
end;

Oracle中%type变量的使用

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-08
  • 2021-07-24
猜你喜欢
  • 2021-05-04
  • 2021-11-02
  • 2022-02-22
  • 2021-12-30
  • 2021-10-27
  • 2022-01-17
相关资源
相似解决方案