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

熱點內容
linux上網代理 發布:2025-03-17 12:23:56 瀏覽:356
c是高級語言嗎 發布:2025-03-17 12:16:31 瀏覽:521
python泛型 發布:2025-03-17 12:15:01 瀏覽:480
編程貓被盜 發布:2025-03-17 12:02:18 瀏覽:130
海關鎖密碼箱如何設置新密碼 發布:2025-03-17 11:53:50 瀏覽:559
農業卡號的密碼在哪裡改 發布:2025-03-17 11:48:57 瀏覽:965
楊瀾超級訪問 發布:2025-03-17 11:47:17 瀏覽:237
資料庫無損連接 發布:2025-03-17 11:47:16 瀏覽:13
memcachephp類 發布:2025-03-17 11:40:04 瀏覽:829
哈夫曼編碼演算法實現 發布:2025-03-17 11:23:31 瀏覽:385