摘要: 创建临时表 方法一: create table #临时表名(字段1 约束条件,字段2 约束条件,.....)create table ##临时表名(字段1 约束条件,字段2 约束条件,.....)方法二: select * into #临时表名 from 你的表; select * into ##临时表名 from 你的表;注:以上的#代表局部临时表,##代表全局临时表查询临时表 select * from #临时表名; select * from ##临时表名;删除临时表 drop table #临时表名; drop table ##临时表名;SQL SERVER临时表的使用http://w 阅读全文
posted @ 2013-06-17 08:56 小林叔叔 阅读(306) 评论(0) 推荐(0) 编辑