17,380
社区成员
发帖
与我相关
我的任务
分享
declare
v_cnt int;
begin
begin
execute immediate 'select tt from duald WHERE col='''A'''' into v_cnt;
exception
when no_data_found then
v_cnt := 0;
end;
begin
execute immediate 'select tt from duald WHERE col='''B'''' into v_cnt;
exception
when no_data_found then
v_cnt := 1;
end;
end;
declare
v_cnt int;
begin
begin
execute immediate 'select tt from duald WHERE col='''A'''' into v_cnt;
execute immediate 'select tt from duald WHERE col='''B'''' into v_cnt;
exception
when no_data_found then
v_cnt := 0;
end;
end;
declare
v_cnt int;
begin
begin
execute immediate 'select tt from duald WHERE col='''A'''' into v_cnt;
exception
when no_data_found then
v_cnt := 0;
end;
end;