MySQL 判断表存在则删除,table_name是表的名字 DROP TABLE IF EXISTS table_name; SQL Server 判断临时表存在则删除,#temp是临时表的名字 if object_id('tempdb..#temp') is not null drop table #temp 判断表存在则删除,t_table是表的名字 if object_id('t_table') is not null drop table t_table