當前位置:首頁 » 編程語言 » sqlselect結果

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

熱點內容
bat編譯器 發布:2025-07-15 04:18:07 瀏覽:54
中興伺服器登錄地址 發布:2025-07-15 04:02:47 瀏覽:988
手提箱怎麼改密碼 發布:2025-07-15 03:55:47 瀏覽:219
did腳本 發布:2025-07-15 03:55:12 瀏覽:963
殘留溶劑線性濃度如何配置 發布:2025-07-15 03:54:31 瀏覽:134
部落沖突好號密碼是什麼 發布:2025-07-15 03:48:45 瀏覽:971
存儲氣瓶 發布:2025-07-15 03:48:10 瀏覽:992
數據解鎖密碼有什麼用 發布:2025-07-15 03:35:27 瀏覽:196
騰訊公認的密碼是多少 發布:2025-07-15 03:34:44 瀏覽:626
代碼txt怎麼改腳本 發布:2025-07-15 03:30:20 瀏覽:289