注: to_char()函數的使用,是因爲查詢的數據亂碼(數據集的問題),用to_char可以解決
oracle 12c不支持wm_concat,需要自己定義
select t.*,(select wm_concat(to_char(s.data_value)) from dev_common s where instr(t.attach_label_code,s.id)>0) name
from relation t where attach_label_code is not null;