存储过程

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

posted @ 2021-10-22 16:22  dreamw  阅读(19)  评论(0编辑  收藏  举报