您好,欢迎访问一九零五行业门户网

删除表的sql语句在不同数据库中的写法详解

这篇文章主要介绍了drop table在不同数据库中的写法整理的相关资料,需要的朋友可以参考下
drop table在不同数据库中的写法整理
1,mysql中
drop table if exists [table_name]
2,oracle中:
begin execute immediate 'drop table [table_name]'; exception when others then null; end;
3,在sql server中
if exists ( select table_name from information_schema.tables where table_name = '[table_name]') drop table [table_name]
【相关推荐】
1. mysql免费视频教程
2. mysql 5.7更换数据库数据存储位置的实例详解
3. 把mysql大数据导入navicat时报错的方法详解
4. mysql解锁和锁表的实例详解
5. 如何提高百万条的数据库查询速度
以上就是删除表的sql语句在不同数据库中的写法详解的详细内容。
其它类似信息

推荐信息