SQLserver临时表

IF  EXISTS (SELECT * FROM SYSOBJECTS WHERE NAME='#temp')
DROP TABLE #temp
GO
SELECT ID,XM,ADDDW
INTO #temp
FROM CKZD
GO
SELECT * #temp
DROP TABLE #temp

 

posted @ 2015-01-15 13:59  小毛驴  阅读(187)  评论(0编辑  收藏  举报