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

熱點內容
java返回this 發布:2025-10-20 08:28:16 瀏覽:572
製作腳本網站 發布:2025-10-20 08:17:34 瀏覽:860
python中的init方法 發布:2025-10-20 08:17:33 瀏覽:559
圖案密碼什麼意思 發布:2025-10-20 08:16:56 瀏覽:740
怎麼清理微信視頻緩存 發布:2025-10-20 08:12:37 瀏覽:660
c語言編譯器怎麼看執行過程 發布:2025-10-20 08:00:32 瀏覽:981
郵箱如何填寫發信伺服器 發布:2025-10-20 07:45:27 瀏覽:232
shell腳本入門案例 發布:2025-10-20 07:44:45 瀏覽:90
怎麼上傳照片瀏覽上傳 發布:2025-10-20 07:44:03 瀏覽:783
python股票數據獲取 發布:2025-10-20 07:39:44 瀏覽:688