sql临时表的创设
sql临时表的创建
create table #simple /*只对当前用户有效,其他用户无法使用,断掉连接后立即销毁该表*/
(
id int not null
)
select * from #simple
create table ##simple /*对任何前用户有效,断掉连接后立即销毁该表*/
(
id int not null
)
select * from ##simple
create table #simple /*只对当前用户有效,其他用户无法使用,断掉连接后立即销毁该表*/
(
id int not null
)
select * from #simple
create table ##simple /*对任何前用户有效,断掉连接后立即销毁该表*/
(
id int not null
)
select * from ##simple