判断临时表是否已存在,当已存在时就删除该临时表。if not (select object_id('Tempdb..#TempTable')) is null drop table #TempTable判断表是否已存在,当已存在时就删除该表。if exists (select * from sysobjects where objectproperty(object_id('table_name'),'istable') = 1)drop table table_namego