2012年5月22日

ORACLE 判断表是否存在|不存在则新建|存在则先删除后新建

摘要: declarei integer;beginselect count(*) into i from user_tables where table_name = 'TMP_T_CATER_DELIVERYADDRESS';if i > 0 thendbms_output.put_line('该表已存在!');execute immediate 'DROP TABLE TMP_T_CATER_DELIVERYADDRESS';elsedbms_output.put_line('该表不存在');end if;execute im 阅读全文

posted @ 2012-05-22 21:45 艾思派客 阅读(3583) 评论(0) 推荐(0) 编辑

导航