type record_type is record(
ff T_a.ff%type,
ss T_a.ss%type,
qq T_a.qq%type
);
r_c1 record_type; 其中 ff 在数据库里为 nvarchar2
fetch c1 into r_c1;
要是取 r_c1.ff 获得是 NULL
r_c1.ss 和 r_c1.qq 都可以获得值
ff T_a.ff%type,
ss T_a.ss%type,
qq T_a.qq%type
);
r_c1 record_type; 其中 ff 在数据库里为 nvarchar2
fetch c1 into r_c1;
要是取 r_c1.ff 获得是 NULL
r_c1.ss 和 r_c1.qq 都可以获得值
--不是特别清楚楼主想要实现什么
fetch c1 into r_c1;
while c1%found loop
if(r_c1.ff is null) {
dbms_output.put_line(r_c1.ss);
dbms_output.put_line(r_c1.qq);
}
end loop;
导致这边看不到更新后的数据。