課程
/數(shù)據(jù)庫
/Oracle
/Oracle高級查詢
如何用MySQL解決,順便保證ID和名字順序的一致性
2019-03-24
源自:Oracle高級查詢 5-5
正在回答
?單純 group by 不能在分組里排序吧 需要listagg(..,..) within group(order by..)來調整順序吧
select ci,listagg(sname,',') within group(order by sid) from
?aa,bb ?where instr(aa.stus,sid)>0?
group by ci?
舉報
數(shù)據(jù)庫開發(fā)中應用廣泛的高級查詢,本教程通過大量的案例詳細講解
1 回答關于練習題
2 回答練習題答案以及一些疑問
2 回答Oracle高級查詢最后一題
1 回答練習作業(yè)提交
2 回答子查詢中的空值問題,最后這點有點不明白
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2019-06-04
?單純 group by 不能在分組里排序吧 需要listagg(..,..) within group(order by..)來調整順序吧
select ci,listagg(sname,',') within group(order by sid) from
?aa,bb ?where instr(aa.stus,sid)>0?
group by ci?