PostgreSQL数据类型:二进制bytea及大对象oid类型
发布时间:2020-12-13 17:36:39 所属栏目:百科 来源:网络整理
导读:参考资料 PostgreSQL Doc:http://www.postgresql.org/docs/9.2/static/datatype-binary.html PostgreSQL public API(LargeObject): http://jdbc.postgresql.org/documentation/publicapi/index.html PostgreSQL JDBC Interface: http://jdbc.postgresql.org/
参考资料 PostgreSQL Doc:http://www.postgresql.org/docs/9.2/static/datatype-binary.html PostgreSQL public API(LargeObject): http://jdbc.postgresql.org/documentation/publicapi/index.html PostgreSQL JDBC Interface: http://jdbc.postgresql.org/documentation/head/binary-data.html 二进制类型bytea的操作(在最大值内,有内存限制) Createtablebyteatable(idint,objbytea); ①直接强制类型输入: Insertintobyteatablevalues(1,'123'::bytea);//插入文本 ②直接插入逃逸序列 bytea 文本逃逸八进制 http://www.postgresql.org/docs/9.2/interactive/datatype-binary.html#DATATYPE-BINARY-TABLE
|