如:declare @Vec table(id identity(1,1) int,Content varchar(100))
--select Content from Attribute 从Attribute表读取记录
insert into @Vec select Content from Attribute
--逐条处理与:declare AttrbCsr cursor
for
select Content from Attribute
open AttrbCsr
...
--逐条处理
--select Content from Attribute 从Attribute表读取记录
insert into @Vec select Content from Attribute
--逐条处理与:declare AttrbCsr cursor
for
select Content from Attribute
open AttrbCsr
...
--逐条处理
表变量法用where id...逐条处理