首页 > 数据库技术 > 详细

sql临时表的创建

时间:2015-03-13 20:43:40      阅读:280      评论:0      收藏:0      [点我收藏+]
create table #simple  /*只对当前用户有效,其他用户无法使用,断掉连接后立即销毁该表*/
(
id int not null
)


select * from #simple


create table ##simple  /*对任何前用户有效,断掉连接后立即销毁该表*/
(
id int not null
)


select * from ##simple

sql临时表的创建

原文:http://blog.csdn.net/linukey/article/details/44245535

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!