第一种:
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