mysql - 从存储过程生成 Xml

标签 mysql xml stored-procedures

有没有办法使用存储过程在mysql中生成xml。

最佳答案

前往postErik标题为MySql 的 XML 输出

引言:

Many times you need to produce XML output from your MySql database. MySql has no built-in support for creating XML in it's SQL implementation but you can easily add support using the stored function feature.

To make xml output easier I have made three small stored SQL functions. They produce xml fragments, which you can easily put together to get a complete xml

关于mysql - 从存储过程生成 Xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9727343/

相关文章:

xml - 我怎样才能让 git 忽略 Atmel Studio 的 .cproj 文件的某些部分?

java - 使用 XML 注释

sql - SQL 存储过程中的动态排序

php - 通过给定字段通过 UNION 组加入 2 个表,并仅获取该组的最新信息

包含数据库查询的 PHP 构造函数来构建对象,好/坏?

mysql - MySQL中如何将一个表拆分为两个?

mysql - 组合结果集的存储过程

MySQL 获取最近 2 个工作日的交易

xml - "where"子句上的 "for"和 "where"子句上的 "let"之间的 XQuery 差异

c# - 通过引用传递到 C# 代码时,可空值不会被修改