declare 

i integer; 

begin 

select count(*) into i from user_tables where table_name = 'TMP_T_CATER_DELIVERYADDRESS'; 

if i > 0 then 

dbms_output.put_line('该表已存在!'); 

execute immediate 'DROP TABLE TMP_T_CATER_DELIVERYADDRESS'; 

else 

dbms_output.put_line('该表不存在'); 

end if; 

execute immediate 'CREATE TABLE TMP_T_CATER_DELIVERYADDRESS(id int primary key,name varchar(50))'; 

end;

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-07-13
  • 2021-10-16
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
相关资源
相似解决方案