sqlserver 用 STUFF 和 for xml path 把查询结果连接成字符串

来源:互联网 发布:mac os ps 破解版 编辑:程序博客网 时间:2024/06/05 16:00
select STUFF((select ','+location_id from t_zone_loca where dps_item='xhzlqbzp' ORDER BY location_id for xml path('')),1,1,'')

0 0