DROP TABLE IF EXISTS” CREATE TABLE IF NOT EXITS &n
关键词:drop table if exists、mysql drop if exists
删除表如果存在创建表如果没有出口,n
DROP TABLE IF EXISTS [table_name]
Oracle:
BEGIN EXECUTE IMMEDIATE ‘DROP TABLE [table_name]’; EXCEPTION WHEN OTHERS THEN NULL;END;
SQL Server:
IF EXISTS ( SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = ‘[table_name]’)DROP TABLE [table_name]
转载请注明:数据分析 » DROP TABLE IF EXISTS” CREATE TABLE IF NOT EXITS &n