2019年8月9日
摘要: 有时候查询出的某一列结果要作为其他数据库查询条件,必须要做拼接转换 方法: SELECT [id] = stuff((SELECT distinct ',''' + t.id + '''' FROM table t WHERE t.id = 1 FOR xml path ('')),1,1,''); 阅读全文
posted @ 2019-08-09 12:02 幻影迷踪 阅读(640) 评论(0) 推荐(0) 编辑