DBS

.NET~~勇往直前!后来者居上!!

导航

sqlserver建立临时表

第一种:

create table #tab (
id int,
name varchar(10)
)
insert into #tab select 1,'a'
insert into #tab select 2, 'b'
select * from #tab

第二种:

declare @tab table(
id int,
name varchar(10)
)
insert into @tab select 1,'a'
insert into @tab select 2,'b'
select * from @tab

posted on 2008-11-27 22:24  zhangjpb  阅读(915)  评论(0编辑  收藏  举报