復(fù)制代碼 代碼如下:
declare @t table(列名1 列的數(shù)據(jù)類型1 , 列名2 列的數(shù)據(jù)類型2 , ...............)
insert into @t(列名1 ,列名2 ,...............) values (...............)
[code]
或者
[code]
insert into @t(列名1 ,列名2 ,...............) (select ....from....)
復(fù)制代碼 代碼如下:
declare @t table(id nvarchar(3),[name] nvarchar(10) )
insert into @t(id,[name])
(select id, [name] from PeopleInfo where [Name] like '李%')
select * from @t
新聞熱點(diǎn)
疑難解答
圖片精選