declare 
      num   number; 
begin 
      select count(1) into num from all_tables where TABLE_NAME = upper('EMP') and OWNER='SCOTT'; 
      if   num=1   then 
          execute immediate 'drop table EMP'; 
      end   if; 
end; 

相关文章: