首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle剔除表的存储过程

2013-03-26 
oracle删除表的存储过程create or replace procedure PROC_dropTable(tabName in varchar2)astableName us

oracle删除表的存储过程

create or replace procedure PROC_dropTable(tabName in varchar2)as   tableName user_tables.table_name%type;    mycount number(10);  begin    tableName:= tabName;    SELECT COUNT(*) INTO mycount FROM user_tables WHERE TABLE_NAME = tableName ;    if mycount>0 then       execute immediate 'DROP TABLE '||tableName;    end if;  end; 

我的异常网推荐解决方案:oracle存储过程,http://www.myexception.cn/oracle-develop/177537.html

热点排行