# 二进制与字符串存储辅助函数

> 供类型输入输出、二进制表达式求值和字符串结果转换使用。

---

LLMS 索引： [llms.txt](/zh/llms.txt)

---

供类型输入输出、二进制表达式求值和字符串结果转换使用。

## A {#a}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-array-to-string-for-mysql-pg-catalog-anyarray-pg-catalog-text-e02eb39e" href="#mysql-array-to-string-for-mysql-pg-catalog-anyarray-pg-catalog-text-e02eb39e">`mysql.array_to_string_for_mysql(anyarray, text) → text`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/45-func-agg.sql#L8-L9) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-pg-catalog-bytea-pg-catalog-text-93188d8c" href="#mysql-array-to-string-for-mysql-pg-catalog-bytea-pg-catalog-text-93188d8c">`mysql.array_to_string_for_mysql(bytea[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-character-varying-pg-catalog-text-bbabbd57" href="#mysql-array-to-string-for-mysql-character-varying-pg-catalog-text-bbabbd57">`mysql.array_to_string_for_mysql(character varying[], text) → text`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L636-L637) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-character-pg-catalog-text-aef21a79" href="#mysql-array-to-string-for-mysql-character-pg-catalog-text-aef21a79">`mysql.array_to_string_for_mysql(character[], text) → text`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L630-L631) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-binary-pg-catalog-text-9c176ec8" href="#mysql-array-to-string-for-mysql-mysql-binary-pg-catalog-text-9c176ec8">`mysql.array_to_string_for_mysql(mysql."binary"[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-binary-n-pg-catalog-text-8e74578f" href="#mysql-array-to-string-for-mysql-mysql-binary-n-pg-catalog-text-8e74578f">`mysql.array_to_string_for_mysql(mysql.binary_n[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-blob-pg-catalog-text-d27bbe14" href="#mysql-array-to-string-for-mysql-mysql-blob-pg-catalog-text-d27bbe14">`mysql.array_to_string_for_mysql(mysql.blob[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-hexlit-pg-catalog-text-73cda491" href="#mysql-array-to-string-for-mysql-mysql-hexlit-pg-catalog-text-73cda491">`mysql.array_to_string_for_mysql(mysql.hexlit[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-varbinary-pg-catalog-text-d952c048" href="#mysql-array-to-string-for-mysql-mysql-varbinary-pg-catalog-text-d952c048">`mysql.array_to_string_for_mysql(mysql.varbinary[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-mysql-varbinary-n-pg-catalog-text-74be6f73" href="#mysql-array-to-string-for-mysql-mysql-varbinary-n-pg-catalog-text-74be6f73">`mysql.array_to_string_for_mysql(mysql.varbinary_n[], text) → bytea`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L622-L623) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |
| <a id="mysql-array-to-string-for-mysql-pg-catalog-text-pg-catalog-text-a50412fb" href="#mysql-array-to-string-for-mysql-pg-catalog-text-pg-catalog-text-a50412fb">`mysql.array_to_string_for_mysql(text[], text) → text`</a> | GROUP_CONCAT 最终结果使用的内部字符串转换。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L634-L635) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1921-L1958) |

## B {#b}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-binary-n-in-pg-catalog-cstring-pg-catalog-oid-integer-4c794cf9" href="#mysql-binary-n-in-pg-catalog-cstring-pg-catalog-oid-integer-4c794cf9">`mysql.binary_n_in(cstring, oid, integer) → mysql.binary_n`</a> | 读入二进制值的文本表示。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L376-L377) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L853-L862) |
| <a id="mysql-binary-n-out-mysql-binary-n-7c6f6875" href="#mysql-binary-n-out-mysql-binary-n-7c6f6875">`mysql.binary_n_out(mysql.binary_n) → cstring`</a> | 输出二进制值的文本表示。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L378-L379) |
| <a id="mysql-binary-n-recv-pg-catalog-internal-pg-catalog-oid-integer-47dd57c4" href="#mysql-binary-n-recv-pg-catalog-internal-pg-catalog-oid-integer-47dd57c4">`mysql.binary_n_recv(internal, oid, integer) → mysql.binary_n`</a> | 接收 PostgreSQL 二进制格式。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L380-L381) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L865-L872) |
| <a id="mysql-binary-n-send-mysql-binary-n-1e36668c" href="#mysql-binary-n-send-mysql-binary-n-1e36668c">`mysql.binary_n_send(mysql.binary_n) → bytea`</a> | 发送 PostgreSQL 二进制格式。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L382-L383) |
| <a id="mysql-binary-n-typmodin-pg-catalog-cstring-08bd3025" href="#mysql-binary-n-typmodin-pg-catalog-cstring-08bd3025">`mysql.binary_n_typmodin(cstring[]) → integer`</a> | 解析声明的长度修饰符。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L384-L385) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L829-L842) |
| <a id="mysql-binary-n-typmodout-integer-2ec01bac" href="#mysql-binary-n-typmodout-integer-2ec01bac">`mysql.binary_n_typmodout(integer) → cstring`</a> | 格式化长度修饰符。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L386-L387) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L845-L850) |
| <a id="mysql-binary-truth-pg-catalog-any-8eaa4ff2" href="#mysql-binary-truth-pg-catalog-any-8eaa4ff2">`mysql.binary_truth("any") → boolean`</a> | 计算二进制或字符串操作数的真假值。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L540-L541) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1385-L1428) |

## C {#c}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-cast-char-pg-catalog-any-integer-b9896c80" href="#mysql-cast-char-pg-catalog-any-integer-b9896c80">`mysql.cast_char("any", integer) → text`</a> | 将表达式转换为指定的字符表示。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L610-L611) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1344-L1358) |
| <a id="mysql-concat-one-pg-catalog-any-85e98d71" href="#mysql-concat-one-pg-catalog-any-85e98d71">`mysql.concat_one("any") → text`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L451-L452) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-pg-catalog-bytea-c9762df5" href="#mysql-concat-one-pg-catalog-bytea-c9762df5">`mysql.concat_one(bytea) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L458-L459) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-character-8d9bcb59" href="#mysql-concat-one-character-8d9bcb59">`mysql.concat_one(character) → text`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L632-L633) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-mysql-binary-n-309a6dd9" href="#mysql-concat-one-mysql-binary-n-309a6dd9">`mysql.concat_one(mysql.binary_n) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L458-L459) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-mysql-hexlit-a4f25810" href="#mysql-concat-one-mysql-hexlit-a4f25810">`mysql.concat_one(mysql.hexlit) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L458-L459) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-mysql-varbinary-n-b9c2d17c" href="#mysql-concat-one-mysql-varbinary-n-b9c2d17c">`mysql.concat_one(mysql.varbinary_n) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L458-L459) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-one-pg-catalog-text-1bdd7513" href="#mysql-concat-one-pg-catalog-text-1bdd7513">`mysql.concat_one(text) → text`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L458-L459) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1239-L1243) |
| <a id="mysql-concat-pair-pg-catalog-bytea-pg-catalog-bytea-746b1086" href="#mysql-concat-pair-pg-catalog-bytea-pg-catalog-bytea-746b1086">`mysql.concat_pair(bytea, bytea) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L464-L465) |
| <a id="mysql-concat-pair-pg-catalog-bytea-pg-catalog-text-358fd41e" href="#mysql-concat-pair-pg-catalog-bytea-pg-catalog-text-358fd41e">`mysql.concat_pair(bytea, text) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L464-L465) |
| <a id="mysql-concat-pair-pg-catalog-text-pg-catalog-bytea-e128a6a6" href="#mysql-concat-pair-pg-catalog-text-pg-catalog-bytea-e128a6a6">`mysql.concat_pair(text, bytea) → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L464-L465) |
| <a id="mysql-concat-pair-pg-catalog-text-pg-catalog-text-ae0a9482" href="#mysql-concat-pair-pg-catalog-text-pg-catalog-text-ae0a9482">`mysql.concat_pair(text, text) → text`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L464-L465) |
| <a id="mysql-concat-ws-bytes-pg-catalog-any-694a42ec" href="#mysql-concat-ws-bytes-pg-catalog-any-694a42ec">`mysql.concat_ws_bytes(VARIADIC "any") → bytea`</a> | 为 CONCAT 或 CONCAT_WS 拼接操作数，并保留二进制结果。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L604-L605) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1524-L1551) |
| <a id="mysql-convert-using-pg-catalog-any-pg-catalog-text-25c90458" href="#mysql-convert-using-pg-catalog-any-pg-catalog-text-25c90458">`mysql.convert_using("any", text) → text`</a> | 将表达式转换为指定的字符表示。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L612-L613) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1361-L1375) |

## E {#e}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-elt-index-pg-catalog-any-cc57cc41" href="#mysql-elt-index-pg-catalog-any-cc57cc41">`mysql.elt_index("any") → integer`</a> | 将 ELT 的选择参数转换成位置。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L606-L607) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1556-L1621) |

## H {#h}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-hexlit-cmp-support-pg-catalog-internal-4864c735" href="#mysql-hexlit-cmp-support-pg-catalog-internal-4864c735">`mysql.hexlit_cmp_support(internal) → internal`</a> | 为十六进制字面量比较提供规划器支持。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L436-L437) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L934-L980) |
| <a id="mysql-hexlit-in-pg-catalog-cstring-77698edf" href="#mysql-hexlit-in-pg-catalog-cstring-77698edf">`mysql.hexlit_in(cstring) → mysql.hexlit`</a> | 读入二进制值的文本表示。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L26-L27) |
| <a id="mysql-hexlit-out-mysql-hexlit-3bd6bac6" href="#mysql-hexlit-out-mysql-hexlit-3bd6bac6">`mysql.hexlit_out(mysql.hexlit) → cstring`</a> | 输出二进制值的文本表示。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L28-L29) |
| <a id="mysql-hexlit-recv-pg-catalog-internal-999a2b67" href="#mysql-hexlit-recv-pg-catalog-internal-999a2b67">`mysql.hexlit_recv(internal) → mysql.hexlit`</a> | 接收 PostgreSQL 二进制格式。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L30-L31) |
| <a id="mysql-hexlit-send-mysql-hexlit-9f85c4b5" href="#mysql-hexlit-send-mysql-hexlit-9f85c4b5">`mysql.hexlit_send(mysql.hexlit) → bytea`</a> | 发送 PostgreSQL 二进制格式。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L32-L33) |

## M {#m}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-mys-uint64-bitnot-numeric-dac4d240" href="#mysql-mys-uint64-bitnot-numeric-dac4d240">`mysql.mys_uint64_bitnot(numeric) → numeric`</a> | 按 MySQL 无符号 64 位规则计算位运算。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L91-L92) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L608-L612) |
| <a id="mysql-mys-uint64-bitop-numeric-numeric-pg-catalog-char-cf9467c6" href="#mysql-mys-uint64-bitop-numeric-numeric-pg-catalog-char-cf9467c6">`mysql.mys_uint64_bitop(numeric, numeric, "char") → bigint`</a> | 按 MySQL 无符号 64 位规则计算位运算。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L89-L90) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L572-L604) |

## R {#r}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-raw-bytes-pg-catalog-any-b55a5b73" href="#mysql-raw-bytes-pg-catalog-any-b55a5b73">`mysql.raw_bytes("any") → bytea`</a> | 提取输入值的原始字节。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L538-L539) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |

## S {#s}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-string-result-pg-catalog-anyelement-pg-catalog-any-a1323a2b" href="#mysql-string-result-pg-catalog-anyelement-pg-catalog-any-a1323a2b">`mysql.string_result(anyelement, "any") → anyelement`</a> | 生成改写表达式的字符串结果。 | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L602-L603) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1506-L1521) |

## V {#v}

| 对象签名 | 用途 | 源码定义 |
|---|---|---|
| <a id="mysql-varbinary-n-in-pg-catalog-cstring-pg-catalog-oid-integer-39630408" href="#mysql-varbinary-n-in-pg-catalog-cstring-pg-catalog-oid-integer-39630408">`mysql.varbinary_n_in(cstring, oid, integer) → mysql.varbinary_n`</a> | 读入二进制值的文本表示。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L376-L377) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L853-L862) |
| <a id="mysql-varbinary-n-out-mysql-varbinary-n-0502981d" href="#mysql-varbinary-n-out-mysql-varbinary-n-0502981d">`mysql.varbinary_n_out(mysql.varbinary_n) → cstring`</a> | 输出二进制值的文本表示。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L378-L379) |
| <a id="mysql-varbinary-n-recv-pg-catalog-internal-pg-catalog-oid-integer-ecfb9e79" href="#mysql-varbinary-n-recv-pg-catalog-internal-pg-catalog-oid-integer-ecfb9e79">`mysql.varbinary_n_recv(internal, oid, integer) → mysql.varbinary_n`</a> | 接收 PostgreSQL 二进制格式。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L380-L381) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L865-L872) |
| <a id="mysql-varbinary-n-send-mysql-varbinary-n-9e71b4b7" href="#mysql-varbinary-n-send-mysql-varbinary-n-9e71b4b7">`mysql.varbinary_n_send(mysql.varbinary_n) → bytea`</a> | 发送 PostgreSQL 二进制格式。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L382-L383) |
| <a id="mysql-varbinary-n-typmodin-pg-catalog-cstring-c7bd8fa1" href="#mysql-varbinary-n-typmodin-pg-catalog-cstring-c7bd8fa1">`mysql.varbinary_n_typmodin(cstring[]) → integer`</a> | 解析声明的长度修饰符。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L384-L385) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L829-L842) |
| <a id="mysql-varbinary-n-typmodout-integer-3638066d" href="#mysql-varbinary-n-typmodout-integer-3638066d">`mysql.varbinary_n_typmodout(integer) → cstring`</a> | 格式化长度修饰符。 | [生成定义](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L386-L387) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L845-L850) |

---

反链：

- [函数](/zh/docs/mysql/reference/objects/functions/)
