HGDB默认支持xml数据类型;Postgresql如若使用xml需在编译时指定
2017-09-15 14:30
507 查看
highgo=# select version();
version
------------------------------------
HighGo Database 3.1.4 Linux 64-bit
(1 row)
highgo=# select xml '<osdba>hello world </osdba>';
xml
-----------------------------
<osdba>hello world </osdba>
(1 row)
PG中要使用xml数据类型,在编译pg源码时必须使用以下参数:
configure --with-libxml
否则无法使用xml数据类型:
postgres9.6@[local]:5432 postgres# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 9.6.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit
(1 row)
Time: 1.051 ms
postgres9.6@[local]:5432 postgres# select xml '<osdba>hello world </osdba>';
ERROR: unsupported XML feature
LINE 1: select xml '<osdba>hello world </osdba>';
^
DETAIL: This functionality requires the server to be built with libxml support.
HINT: You need to rebuild PostgreSQL using --with-libxml.
Time: 0.419 ms
version
------------------------------------
HighGo Database 3.1.4 Linux 64-bit
(1 row)
highgo=# select xml '<osdba>hello world </osdba>';
xml
-----------------------------
<osdba>hello world </osdba>
(1 row)
PG中要使用xml数据类型,在编译pg源码时必须使用以下参数:
configure --with-libxml
否则无法使用xml数据类型:
postgres9.6@[local]:5432 postgres# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 9.6.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit
(1 row)
Time: 1.051 ms
postgres9.6@[local]:5432 postgres# select xml '<osdba>hello world </osdba>';
ERROR: unsupported XML feature
LINE 1: select xml '<osdba>hello world </osdba>';
^
DETAIL: This functionality requires the server to be built with libxml support.
HINT: You need to rebuild PostgreSQL using --with-libxml.
Time: 0.419 ms
相关文章推荐
- net控件中数据导到Excel的格式 首先,我们了解一下excel从web页面上导出的原理。当我们把这些数据发送到客户端时,我们想让客户端程序(浏览器)以excel的格式读取它,所以把mime类型设为:application/vnd.ms-excel,当excel读取文件时会以每个cell的格式呈现数据,如果cell没有规定的格式,则excel会以默认的格式去呈现该cell的数据。这样就给我们提供了自定义数据格式的空间,当然我们必须使用excel支持的格式。下面就列出常用的一些格式: 1) 文本
- WebService生成XML文档时出错。不应是类型XXXX。使用XmlInclude或SoapInclude属性静态指定非已知的类型。
- 使用SQL Sever版本不支持数据类型“date”的解决办法
- PostgreSQL数据库不支持Geometry数据类型的解决方法
- 使用的 SQL Server 版本不支持数据类型“date”的解决方法
- 使用ASP.NET AJAX异步调用Web Service和页面中的类方法(10):服务器端和客户端数据类型的自动转换:以XML方式序列化数据、小结
- 使用的 SQL Server 版本不支持数据类型“date”的解决方法
- 使用的 SQL Server 版本不支持数据类型“datetime2”解决办法
- 使用 SQL Server 2008 数据类型-xml 字段类型参数进行数据的批量选取或删除数据
- 2、SQL Server 2005中使用XML数据类型
- 使用的 SQL Server 版本不支持数据类型“datetime2”解决办法
- [哭]使用Data Access 2 插入Ntext类型数据时SqlParameter不指定类型的问题 , ,请为我解惑
- 数据类型格式化函数(PostgreSQL),ORACLE支持
- 想得到数据所有支持的数据类型(GetSchema的使用)
- 使用JDBC4.0操作XML类型的字段(保存获取xml数据)的方法
- 使用的 SQL Server 版本不支持数据类型“date”的解决方法 [转]
- js中使用DOM复制(克隆)指定节点名数据到新的XML文件中的代码
- 使用ASP.NET AJAX异步调用Web Service和页面中的类方法(10):服务器端和客户端数据类型的自动转换:以XML方式序列化数据、小结
- 使用template扩展已有的DDX_Text函数,使扩展能够同时支持各种数据类型的一个例子
- SQL Server2005中使用XML-数据类型、查询与修改