SQL Server中临时表的建立

来源:互联网 发布:啊里学院开淘宝店教程 编辑:程序博客网 时间:2024/05/27 19:26
select * into #temptable from tablename
#连接断开后自动释放


在sql中建立临时表
create table #tablename (.....)   局部
create table ##tablename(.....)   全局

select * into #tablename .....
select * into ##tablename ....

insert into #tablename ....
insert into ##tablename ....

等sql语句

 
原创粉丝点击