if (select object_ID('tempdb..#BaseInfoFK')) >0 drop table #BaseInfoFKselect a.* into #BaseInfoFK from (select * from table)a#BaseInfoFK是临时表的名一定要加#