暂无图片
msql查询结果集转换展示方式
我来答
分享
暂无图片 匿名用户
msql查询结果集转换展示方式
暂无图片 5M

请教


我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
chengang
with cte1 as ( select '10084' as hostid,'127.0.0.1' as ip union all select '10436' as hostid,'192.168.10.131' as ip union all select '10439' as hostid,'192.168.10.127' as ip union all select '10448' as hostid,'192.168.10.130' as ip ) select group_concat(hostid separator ' ') from cte1 union all select group_concat(ip separator ' ') from cte1

结果
10084 10436 10439 10448
127.0.0.1 192.168.10.131 192.168.10.127 192.168.10.130

暂无图片 评论
暂无图片 有用 0
暂无图片
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏