Oracle中%rowtype变量的使用
--%rowtype表示与表一整行的数据类型相同,查询时必须select * 才可以将查询结果存入变量
set serveroutput on
declare
a trp_advp_copy%rowtype;
begin
select * into a from trp_advp_copy where id = 942371;
dbms_output.put_line(a.groupname||'---'||a.projectname);
end;