Oracle如何判断表存在,若存在则进行删除

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; 

原文地址:https://www.cnblogs.com/biabiabia/p/9813496.html