sqlselect结果
发布时间: 2025-03-17 02:05:35
① sql 多条select结果插入
你insert into test3插入了三项,但是后面select的结果只有1项。。
要统一即可。
不知道你是不要的这个结果:
declare @i varchar(50)set @i='75'
while @i<'80'
begin
insert into test3(MP,ZS,CHD)
values(select @i,
select count(序号)from text where 住址 like '%XX路'+@i+'%',select count(序号) from text where 住址 like '%XX路'+@i+'%' and 出生日期>'19980101')
set @i=@i+2
end
热点内容