国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
oracle橫列轉(zhuǎn)換
一、oracle橫列轉(zhuǎn)換
Java代碼
  1. ----行列互換   
  2. select t.* from temp_sc t;   
  3. select sc.stdname, a.grade 語(yǔ)文, b.grade 數(shù)學(xué), c.grade 物理, d.grade 化學(xué)   
  4.   from (select distinct stdname from temp_sc) sc,   
  5.        (select stdname, grade from temp_sc where stdsubject = '語(yǔ)文') a,   
  6.        (select stdname, grade from temp_sc where stdsubject = '數(shù)學(xué)') b,   
  7.        (select stdname, grade from temp_sc where stdsubject = '物理') c,   
  8.        (select stdname, grade from temp_sc where stdsubject = '化學(xué)') d   
  9.  where sc.stdname = a.stdname   
  10.    and sc.stdname = b.stdname   
  11.    and sc.stdname = c.stdname   
  12.    and sc.stdname = d.stdname;  






二、樹(shù)
Java代碼
  1. --從哪條開(kāi)始 start with   
  2. --連表?xiàng)l件 connect by   
  3. --往上還是往下 prior   
  4. --從哪條開(kāi)始 start with   
  5. --連表?xiàng)l件 connect by   
  6. --往上還是往下 prior   
  7. select *   
  8. from tbl_tree   
  9. start with uuid = 1  
  10. connect by prior uuid = puuid   
  11. order by puuid  


 
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
SQL 行列轉(zhuǎn)換 (PIVOT和UNPIVOT運(yùn)算符 )
從【各大軟件公司筆試壓軸題】學(xué)習(xí)SQL語(yǔ)句
Oracle筆記(十一) 建表、更新、查詢綜合練習(xí)
數(shù)據(jù)庫(kù)筆試題
5-3-5
數(shù)據(jù)庫(kù)的簡(jiǎn)單查詢和鏈接查詢
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服