Oracle字符串分割Split(超簡單一條sql解決)


SELECT (select wm_concat(name) from keming where instr(Course, code    ) > 0) FROM renyuan  where name ='張三'
解決如下問題
我現在有一個字段是存:1,2,3的,而它對應另一張值集表中。eg;

課程人員表 renyuan 
id    name     Course
1     張三      123

值集表    keming 
    code    name
     1       語文
     2       數字
      3       英語
………………

course 與code 關聯   查詢出結果為:

張三    語文,數字,英語

例子:

select distinct sc.park_count from screen_manager sc ,parklots p
where to_char(p.id) in (select belong_park from screen_manager) and sc.belong_park like  '%651%'  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM