咖喱碗糕`

`∧ ∧︵
ミ^ō^ミ灬)~ ~我是只可爱的狐狸```
http://freedom2130.cnblogs.com
posts - 93, comments - 35, trackbacks - 1, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

SQL Server中临时表的建立

Posted on 2005-09-14 02:22 刹那间我存在 阅读(2464) 评论(1) 编辑 收藏
 SQL Server中临时表的建立
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语句