不能这样写
直接drop就可以declare
w_count int;
w_name varchar2(20);
begin
w_name := 'tablemname';
select count(*) into w_count from user_tables where name=w_name;
if (w_count>0) then
execute immediate 'drop table '|| w_name;
end if;
end;
直接drop就可以declare
w_count int;
w_name varchar2(20);
begin
w_name := 'tablemname';
select count(*) into w_count from user_tables where name=w_name;
if (w_count>0) then
execute immediate 'drop table '|| w_name;
end if;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货