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

為了賬號安全,請及時綁定郵箱和手機立即綁定

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

代碼如下:
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; ? ? ?
想實現(xiàn)的是:在test_student表中stuname列循環(huán)插入數(shù)據(jù),插入的時候隨機從test_hanzibiao表中提取xingshi 和hzb1列。
現(xiàn)在的問題是:運行后stuname列直接所有數(shù)據(jù)都是一樣的。求幫助

正在回答

舉報

0/150
提交
取消

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

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

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

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