第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

關(guān)于PLSQL循環(huán)導(dǎo)入數(shù)據(jù)的問(wèn)題

代碼如下:
begin
?for c in (select * from test_student) loop
? ?update test_student t
? ? ? set t.stuname =
? ? ? ? ? (select *
? ? ? ? ? ? ?from (select xingshi || hzb1
? ? ? ? ? ? ? ? ? ? ?from test_hanzibiao
? ? ? ? ? ? ? ? ? ? order by dbms_random.value)
? ? ? ? ? ? where rownum = 1)
?end loop;
end; ? ? ?
想實(shí)現(xiàn)的是:在test_student表中stuname列循環(huán)插入數(shù)據(jù),插入的時(shí)候隨機(jī)從test_hanzibiao表中提取xingshi 和hzb1列。
現(xiàn)在的問(wèn)題是:運(yùn)行后stuname列直接所有數(shù)據(jù)都是一樣的。求幫助

正在回答

舉報(bào)

0/150
提交
取消

關(guān)于PLSQL循環(huán)導(dǎo)入數(shù)據(jù)的問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)