17,382
社区成员




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;