日期:2014-05-16 浏览次数:20437 次
MySQL:
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]