婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁(yè) > 知識(shí)庫(kù) > oracle刪除已存在的表的實(shí)例

oracle刪除已存在的表的實(shí)例

熱門(mén)標(biāo)簽:溫州人工外呼系統(tǒng) 地圖標(biāo)注付款了怎么找不到了 百度地圖標(biāo)注員是干什么 貴陽(yáng)智能電銷(xiāo)機(jī)器人官網(wǎng) 沈陽(yáng)400電話是如何辦理 北京營(yíng)銷(xiāo)外呼系統(tǒng)廠家 外呼系統(tǒng)口號(hào) 外呼系統(tǒng)鄭州 北京外呼系統(tǒng)公司排名
Sql代碼
復(fù)制代碼 代碼如下:

select count(*) from user_objects where object_name=upper(p_table_name); 
select count(*) from user_tables where table_name=upper(p_table_name); 

create or replace procedure p_drop_table_if_exist_v1( 
p_table_name in varchar2 
) is 
v_count number(10); 
begin 
select count(*) 
into v_count 
from user_objects 
where object_name=upper(p_table_name); 
if v_count > 0 then 
execute immediate 'drop table ' || p_table_name || ' purge'; 
end if; 
exception 
when no_data_found then 
    begin 
        null; 
    end; 
end; 
/  

create or replace procedure p_drop_table_if_exist_v2( 
p_table_name in varchar2 
) is 
v_table_name varchar2(20); 
begin 
select table_name  
into v_table_name  
from user_tables  
where table_name=upper(p_table_name); 
if length(v_table_name)>0 then   
execute immediate 'drop table ' || p_table_name || ' cascade constraints';  
end if; 

exception 
when no_data_found then 
    begin 
        null; 
    end; 
end; 
/  

標(biāo)簽:衢州 潮州 溫州 衡水 淮北 包頭 通遼 定西

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《oracle刪除已存在的表的實(shí)例》,本文關(guān)鍵詞  oracle,刪除,已,存,在的,表,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《oracle刪除已存在的表的實(shí)例》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于oracle刪除已存在的表的實(shí)例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 峨眉山市| 武冈市| 达孜县| 昂仁县| 乌鲁木齐市| 东安县| 建始县| 册亨县| 城口县| 华安县| 化德县| 郓城县| 白朗县| 福安市| 寻甸| 托克托县| 武宁县| 临高县| 阿拉善盟| 宁城县| 罗定市| 威远县| 隆德县| 天台县| 外汇| 即墨市| 柳河县| 郓城县| 巴马| 尖扎县| 恩平市| 湘潭市| 青田县| 安新县| 富宁县| 万载县| 小金县| 佳木斯市| 民勤县| 禄劝| 南投县|