表1 user表
id name job
1 xx 2,3
2 yy 1,2,3
表2 job
id job
1 aa
2 bb
3 cc
想得到是视图 view
id name job
1 xx bb,cc
2 yy aa,bb,cc
-- 吐槽下 USER 表名. SELECT A.ID, A.NAME, WMSYS.WM_CONCAT(B.JOB) JOB FROM "USER" A, JOB B WHERE ',' || A.JOB || ',' LIKE '%,' || B.ID || ',%' GROUP BY A.ID, A.NAME