//创建临时表
 CREATE TABLE #temp_ellist
   (
     id int identity(1,1),
     elID INT,
     elName VARCHAR(500),
     acount int,
     scount int
   )
 
--删除表临时表
     IF EXISTS (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#temp_ellist') and type='U')
     DROP TABLE #temp_ellist 

 

 

注意:临时表名

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-12-28
  • 2021-09-29
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2023-02-16
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案