34,593
社区成员
发帖
与我相关
我的任务
分享
declare @tb1 table (myid int,mytext varchar(10))
insert into @tb1
select 1,'aaaaaa' union all
select 2,'bbbbbb'
select *
from @tb1
/*
myid mytext
----------- ----------
1 aaaaaa
2 bbbbbb
(所影响的行数为 2 行)
*/
declare @temp table(id int identity(1,1),Name varchar(10))
insert @temp select 'aa'
insert @temp select 'bb'
select * from @temp