从数据库生成xml节点 [英] generating xml nodes from database

查看:53
本文介绍了从数据库生成xml节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人帮助我!
如何使用数据库使用xml创建动态菜单.

some one help me !
how to create a dynamic menu with xml using data base . this is need to maintain the user roles in the project.

推荐答案

使用此查询

从[Tablename]中选择*作为xml路径("Any"),root("root")

试试这个.它可能对你有帮助.
:cool:
use this query

Select * from [Tablename] for xml path(''Any''),root(''root'')

try this .it may help u.
:cool:


这篇关于从数据库生成xml节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆