您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

在SQL中生成XML文本

2024/3/31 10:23:22发布35次查看
在sql中自定义xml的根节点和子节点 select * from table for xml path('child'),root('parent') 多表查询一个主表一个子表的话 select *, (select * from subtable where subtable.id=master.id for xml path('child'),root('parent'),type ) from master fo
在sql中自定义xml的根节点和子节点
select * from table for xml path('child'),root('parent')
多表查询一个主表一个子表的话
select *,
(select * from subtable where subtable.id=master.id
for xml path('child'),root('parent'),type
)
from master
for xml path('child'),root('parent')

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product