當前位置:首頁 » 編程語言 » 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-07-15 09:33:24 瀏覽:906
更新傳送伺服器目的地址失敗 發布:2025-07-15 09:27:05 瀏覽:484
c語言else的用法 發布:2025-07-15 09:19:54 瀏覽:119
tnt蘋果核安卓怎麼加好友 發布:2025-07-15 09:05:15 瀏覽:239
年輕人運行內存為什麼比安卓好 發布:2025-07-15 08:52:03 瀏覽:515
怎麼配置組策略 發布:2025-07-15 08:52:02 瀏覽:246
pythonjson格式 發布:2025-07-15 08:42:54 瀏覽:678
醫院葯房要什麼配置 發布:2025-07-15 08:29:55 瀏覽:666
編程說明書 發布:2025-07-15 08:16:39 瀏覽:761
android請求超時 發布:2025-07-15 07:56:57 瀏覽:530