MSSQL删除表及快速创建表(临时表)

一、临时表
if object_id('tempdb.dbo.#otc_otherdeliverline') is not null drop table dbo.#otc_otherdeliverline
Select * into #otc_otherdeliverline from v_utis_CRMOtherDeliverLine


二、真实表
if object_id(N'#otc_otherdeliverline', N'u') is not null drop table #otc_otherdeliverline
Select * into #otc_otherdeliverline from v_utis_CRMOtherDeliverLine

猜你喜欢

转载自lan-hai.iteye.com/blog/1506626