當前位置:首頁 » 編程語言 » 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

熱點內容
如何編譯內核模塊 發布:2025-09-24 01:14:47 瀏覽:752
王者榮耀官方伺服器地址 發布:2025-09-24 00:47:29 瀏覽:190
gif在線壓縮免費 發布:2025-09-24 00:41:13 瀏覽:945
tcl腳本if 發布:2025-09-24 00:26:59 瀏覽:705
蘋果手機怎麼連個人安卓手機熱點 發布:2025-09-24 00:20:46 瀏覽:132
虛擬專用賬號密碼在哪裡注冊 發布:2025-09-23 23:57:20 瀏覽:179
如何修改魔寶顯示屏密碼 發布:2025-09-23 23:46:54 瀏覽:408
伺服器網卡雙ip地址 發布:2025-09-23 23:41:57 瀏覽:176
為什麼電腦吃雞連接不上伺服器 發布:2025-09-23 23:27:18 瀏覽:685
吉利帝豪舒適版都有哪些配置 發布:2025-09-23 23:18:57 瀏覽:311