sql2016直接生产json格式数据

select   【查询字段】 text from 【表名】 with(nolock) where 【查询条件】 for json path;

你可能感兴趣的:(sql2016直接生产json格式数据)