实验用表一(PeopleInfo): id name phone XC1 李某 123333333 XC2 小小 785555555 例如:
复制代码 代码如下:www.CuoXIn.com
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