Sql一行拆分转多行
发布日期:2021-05-09 00:53:50 浏览次数:14 分类:博客文章

本文共 332 字,大约阅读时间需要 1 分钟。

select       a.planid,b.mias,0 miaid  into [1_cache3]from       (select planid,mias=convert(xml,'
'+replace(mias,',','
')+'
') from [1_cache1])a outer apply (select mias=C.v.value('.','nvarchar(100)') from a.mias.nodes('/root/v')C(v))b order by a.planid

������������������������������

上一篇:c# HTTPHelper
下一篇:C#WinForm线程基类

发表评论

最新留言

关注你微信了!
[***.104.42.241]2025年04月21日 13时00分19秒