您的位置:首页 > 编程语言 > Go语言

HGDB(HighGo Database)高版本支持blob和clob类型

2017-09-15 14:28 483 查看
瀚高数据库:

highgo=# select version();

              version               

------------------------------------

 HighGo Database 3.1.4 Linux 64-bit

(1 row)

highgo=# create table b (ZP blob);

CREATE TABLE

highgo=# create table c (ZP bytea);

CREATE TABLE

highgo=# 

highgo=# drop table c;

DROP TABLE

highgo=# drop table b;

DROP TABLE

highgo=# create table b (ZP clob);

CREATE TABLE

highgo=# drop table b;

DROP TABLE

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PostgreSQL数据库中没有此种数据类型:

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: 17.132 ms

postgres9.6@[local]:5432 postgres# create table b (ZP blob);

ERROR:  type "blob" does not exist

LINE 1: create table b (ZP blob);

                           ^

Time: 2.140 ms

postgres9.6@[local]:5432 postgres# create table b (ZP clob);

ERROR:  type "clob" does not exist

LINE 1: create table b (ZP clob);

                           ^

Time: 2.188 ms

postgres9.6@[local]:5432 postgres# 

postgres9.6@[local]:5432 postgres# create table b (ZP bytea);

CREATE TABLE

Time: 48.017 ms
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: