oracle实现mysql的if exist drop table
来源:互联网 发布:潜水是什么意思网络语 编辑:程序博客网 时间:2024/05/17 02:44
oracle建表的时候经常出现表已经建立的情况,mysql的话可以使用 DROP TABLE IF EXISTS T_AUTH_FUNCTION;
这里简单写个如果表存在,drop表的语句:
declare
num number;
begin
select count(1) into num from all_tables where TABLE_NAME = 'T_AUTH_FUNCTION' and OWNER='OMS';
if num=1 then
execute immediate 'drop table T_AUTH_FUNCTION';
end if;
end;
1 0
- oracle实现mysql的if exist drop table
- 利用存储过程实现Oracle的drop table if exists
- Oracle 的drop table if exists功能
- oracle的drop table if exists
- Oracle Drop Table If Exists
- MySQL DROP TABLE IF EXISTS
- oracle drop table的用法
- DROP TABLE IF EXISTS” in Oracle and SQL Server
- DROP TABLE IF EXISTS” in Oracle and SQL Server
- “DROP TABLE IF EXISTS” in Oracle and SQL Server
- MySQL DROP TABLE操作以及 DROP 大表时的注意事项
- MySQL DROP TABLE操作以及 DROP 大表时的注意事项
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- mysql删除大表更快的drop table办法
- POJ 2142 The Balance 扩展欧几里德
- 理解LinkedHashMap
- python之numpy的用法
- Android Studio常用快捷键
- 岭回归
- oracle实现mysql的if exist drop table
- (一)创建一个新的安卓工程
- 【JAVA】38、构造方法的定义
- 导入Oracle的dmp文件
- Leetcode:223. Rectangle Area(JAVA)
- RESTful之Content negotiation
- 桶排序
- Youth by Samuel Ullman
- 蓝桥杯 牌型种数 (暴力||dfs)