encode()

将 bytea 数据转换为文本格式的函数

encode() 是一个用于将 bytea 数据转换为特定文本格式的系统函数。

encode() 函数在 PostgreSQL 7.2 中被添加。

用法

encode ( bytes bytea, format text ) → text

format 可以是以下值之一:

  • base64
  • base64urlPostgreSQL 19 及更高版本)
  • escape
  • hex

变更历史

分类

bytea, 字符串操作, 系统函数

另请参阅

decode()

反馈

欢迎就“encode()”提交任何评论、建议或更正,请在此处 提交