================ sql 转换 查询出多行数据================
(select t.PROPERTY from JD_CODING t left join DELIVERY_OF c on t.VALUE = c.TYPE where t.PROPERTY = 'stackingType' group by t.PROPERTY)
================ 更改后 转为一列的拼接字符串================
( select listagg( distinct t.PROPERTY,',') within group ( order by t.PROPERTY ) from JD_CODING t left join DELIVERY_OF c on t.VALUE = c.TYPE where t.PROPERTY = 'stackingType')
SELECT LISTAGG (name, ',') WITHIN GROUP (ORDER BY name) FROM 。。。。
感谢老哥:https://www.modb.pro/issue/16516
感谢老哥:https://www.5axxw.com/questions/simple/mstqdk