逗号分隔的字典编码转变为字典值
某个字段存了字典编码的字符串,变成字典值的字符串
select
(select group_concat(sps.dic_name) from dicinfo sps where find_in_set(sps.dic_code,cecr.clear_item)) as clear_item_name
from report cecr
find_in_set:语法结构 find_in_set(a,b) ==>查找a中有没有b 有则返回a对应的dic_name
group_concat:将查出来的dic_name拼接成逗号拼接的字符串