# String and binary functions

> Use the return type to distinguish text and byte-string overloads.

---

LLMS index: [llms.txt](/llms.txt)

---

Use the return type to distinguish text and byte-string overloads.

## ascii {#ascii}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-ascii-pg-catalog-bytea-e68d6883" href="#mysql-ascii-pg-catalog-bytea-e68d6883">`mysql.ascii(bytea) → integer`</a> | Read the numeric value of the first byte. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L486-L487) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1268-L1273) |
| <a id="mysql-ascii-mysql-binary-n-cbb45755" href="#mysql-ascii-mysql-binary-n-cbb45755">`mysql.ascii(mysql.binary_n) → integer`</a> | Read the numeric value of the first byte. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L486-L487) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1268-L1273) |
| <a id="mysql-ascii-mysql-hexlit-a3c42598" href="#mysql-ascii-mysql-hexlit-a3c42598">`mysql.ascii(mysql.hexlit) → integer`</a> | Read the numeric value of the first byte. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L486-L487) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1268-L1273) |
| <a id="mysql-ascii-mysql-varbinary-n-ff301911" href="#mysql-ascii-mysql-varbinary-n-ff301911">`mysql.ascii(mysql.varbinary_n) → integer`</a> | Read the numeric value of the first byte. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L486-L487) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1268-L1273) |

## bin {#bin}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-bin-bigint-26e3e78f" href="#mysql-bin-bigint-26e3e78f">`mysql.bin(bigint) → text`</a> | Represent an integer in base two. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1626-L1634) |

## btrim {#btrim}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-btrim-pg-catalog-bytea-c39f6211" href="#mysql-btrim-pg-catalog-bytea-c39f6211">`mysql.btrim(bytea) → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-pg-catalog-bytea-pg-catalog-any-32e6bbdc" href="#mysql-btrim-pg-catalog-bytea-pg-catalog-any-32e6bbdc">`mysql.btrim(bytea, "any") → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-binary-n-f25a7de7" href="#mysql-btrim-mysql-binary-n-f25a7de7">`mysql.btrim(mysql.binary_n) → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-binary-n-pg-catalog-any-99f0b6aa" href="#mysql-btrim-mysql-binary-n-pg-catalog-any-99f0b6aa">`mysql.btrim(mysql.binary_n, "any") → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-hexlit-f87584d8" href="#mysql-btrim-mysql-hexlit-f87584d8">`mysql.btrim(mysql.hexlit) → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-hexlit-pg-catalog-any-ca7d72f7" href="#mysql-btrim-mysql-hexlit-pg-catalog-any-ca7d72f7">`mysql.btrim(mysql.hexlit, "any") → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-varbinary-n-59aa6adb" href="#mysql-btrim-mysql-varbinary-n-59aa6adb">`mysql.btrim(mysql.varbinary_n) → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-btrim-mysql-varbinary-n-pg-catalog-any-42caf111" href="#mysql-btrim-mysql-varbinary-n-pg-catalog-any-42caf111">`mysql.btrim(mysql.varbinary_n, "any") → bytea`</a> | Trim both ends of the byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |

## char_length {#char_length}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-char-length-pg-catalog-bytea-bdc933f4" href="#mysql-char-length-pg-catalog-bytea-bdc933f4">`mysql.char_length(bytea) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-char-length-mysql-binary-n-2c5f00a0" href="#mysql-char-length-mysql-binary-n-2c5f00a0">`mysql.char_length(mysql.binary_n) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-char-length-mysql-hexlit-69145565" href="#mysql-char-length-mysql-hexlit-69145565">`mysql.char_length(mysql.hexlit) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-char-length-mysql-varbinary-n-07b8031e" href="#mysql-char-length-mysql-varbinary-n-07b8031e">`mysql.char_length(mysql.varbinary_n) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |

## character_length {#character_length}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-character-length-pg-catalog-bytea-4d54a2ab" href="#mysql-character-length-pg-catalog-bytea-4d54a2ab">`mysql.character_length(bytea) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-character-length-mysql-binary-n-6cb524fe" href="#mysql-character-length-mysql-binary-n-6cb524fe">`mysql.character_length(mysql.binary_n) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-character-length-mysql-hexlit-255d59a5" href="#mysql-character-length-mysql-hexlit-255d59a5">`mysql.character_length(mysql.hexlit) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-character-length-mysql-varbinary-n-13e116d9" href="#mysql-character-length-mysql-varbinary-n-13e116d9">`mysql.character_length(mysql.varbinary_n) → integer`</a> | Count characters in text or bytes in a binary string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |

## concat {#concat}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-concat-pg-catalog-any-bd90fc3d" href="#mysql-concat-pg-catalog-any-bd90fc3d">`mysql.concat(VARIADIC "any") → text`</a> | Concatenate the arguments in order. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L791-L796) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L981-L989) |

## concat_ws {#concat_ws}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-concat-ws-pg-catalog-text-pg-catalog-any-9d824130" href="#mysql-concat-ws-pg-catalog-text-pg-catalog-any-9d824130">`mysql.concat_ws(text, VARIADIC "any") → text`</a> | Join values with the supplied separator. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1538-L1543) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L992-L1012) |

## elt {#elt}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-elt-pg-catalog-any-a5c21779" href="#mysql-elt-pg-catalog-any-a5c21779">`mysql.elt(VARIADIC "any") → text`</a> | Pick the string at the given one-based position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1608-L1611) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L48-L106) |

## export_set {#export_set}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-export-set-bigint-pg-catalog-text-pg-catalog-text-pg-catalog-text-bigint-8cb4b154" href="#mysql-export-set-bigint-pg-catalog-text-pg-catalog-text-pg-catalog-text-bigint-8cb4b154">`mysql.export_set(bigint, text, text, text, bigint) → text`</a> | Render set and unset bits using the supplied strings. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1652-L1684) |

## field {#field}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-field-bigint-bigint-aa889cb7" href="#mysql-field-bigint-bigint-aa889cb7">`mysql.field(t1 bigint, VARIADIC arr bigint[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L42-L58) |
| <a id="mysql-field-character-varying-character-varying-04d01539" href="#mysql-field-character-varying-character-varying-04d01539">`mysql.field(t1 character varying, VARIADIC arr character varying[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L78-L94) |
| <a id="mysql-field-character-character-7d634a59" href="#mysql-field-character-character-7d634a59">`mysql.field(t1 character, VARIADIC arr character[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L60-L76) |
| <a id="mysql-field-pg-catalog-date-pg-catalog-date-8a7fee3d" href="#mysql-field-pg-catalog-date-pg-catalog-date-8a7fee3d">`mysql.field(t1 date, VARIADIC arr date[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L114-L130) |
| <a id="mysql-field-integer-integer-cdb575b8" href="#mysql-field-integer-integer-cdb575b8">`mysql.field(t1 integer, VARIADIC arr integer[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L24-L40) |
| <a id="mysql-field-mysql-smallint-mysql-smallint-cf7e5872" href="#mysql-field-mysql-smallint-mysql-smallint-cf7e5872">`mysql.field(t1 mysql."smallint", VARIADIC arr mysql."smallint"[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L6-L22) |
| <a id="mysql-field-pg-catalog-text-pg-catalog-text-9b7ba531" href="#mysql-field-pg-catalog-text-pg-catalog-text-9b7ba531">`mysql.field(t1 text, VARIADIC arr text[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L96-L112) |
| <a id="mysql-field-time-without-time-zone-time-without-time-zone-b346de93" href="#mysql-field-time-without-time-zone-time-without-time-zone-b346de93">`mysql.field(t1 time without time zone, VARIADIC arr time without time zone[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L132-L148) |
| <a id="mysql-field-timestamp-without-time-zone-timestamp-without-time-zone-75396675" href="#mysql-field-timestamp-without-time-zone-timestamp-without-time-zone-75396675">`mysql.field(t1 timestamp without time zone, VARIADIC arr timestamp without time zone[]) → integer`</a> | Find a value’s position in the argument list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L150-L166) |

## find_in_set {#find_in_set}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-find-in-set-bigint-pg-catalog-text-7a645853" href="#mysql-find-in-set-bigint-pg-catalog-text-7a645853">`mysql.find_in_set(bigint, text) → integer`</a> | Find a value in a comma-separated list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L990-L993) |
| <a id="mysql-find-in-set-pg-catalog-text-pg-catalog-text-e8fcc6ef" href="#mysql-find-in-set-pg-catalog-text-pg-catalog-text-e8fcc6ef">`mysql.find_in_set(text, text) → integer`</a> | Find a value in a comma-separated list. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L981-L988) |

## format {#format}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-format-numeric-bigint-734ce530" href="#mysql-format-numeric-bigint-734ce530">`mysql.format(numeric, bigint) → text`</a> | Format a number with the requested decimal places. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1636-L1650) |

## hex {#hex}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-hex-bigint-42c403e6" href="#mysql-hex-bigint-42c403e6">`mysql.hex(bigint) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L345-L346) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L652-L656) |
| <a id="mysql-hex-bit-varying-95453527" href="#mysql-hex-bit-varying-95453527">`mysql.hex(bit varying) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L355-L356) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L684-L713) |
| <a id="mysql-hex-boolean-f8fbfeb7" href="#mysql-hex-boolean-f8fbfeb7">`mysql.hex(boolean) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L357-L358) |
| <a id="mysql-hex-pg-catalog-bytea-4aec44f4" href="#mysql-hex-pg-catalog-bytea-4aec44f4">`mysql.hex(bytea) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L343-L344) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |
| <a id="mysql-hex-character-74d06b95" href="#mysql-hex-character-74d06b95">`mysql.hex(character) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L628-L629) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |
| <a id="mysql-hex-double-precision-895936f9" href="#mysql-hex-double-precision-895936f9">`mysql.hex(double precision) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L353-L354) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L667-L680) |
| <a id="mysql-hex-integer-0e74d4e6" href="#mysql-hex-integer-0e74d4e6">`mysql.hex(integer) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L347-L348) |
| <a id="mysql-hex-mysql-binary-n-d9eacbeb" href="#mysql-hex-mysql-binary-n-d9eacbeb">`mysql.hex(mysql.binary_n) → text`</a> | Encode the value in hexadecimal. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L493-L494) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |
| <a id="mysql-hex-mysql-hexlit-88870c3e" href="#mysql-hex-mysql-hexlit-88870c3e">`mysql.hex(mysql.hexlit) → text`</a> | Encode the value in hexadecimal. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L493-L494) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |
| <a id="mysql-hex-mysql-varbinary-n-69591428" href="#mysql-hex-mysql-varbinary-n-69591428">`mysql.hex(mysql.varbinary_n) → text`</a> | Encode the value in hexadecimal. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L493-L494) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |
| <a id="mysql-hex-numeric-aacc7742" href="#mysql-hex-numeric-aacc7742">`mysql.hex(numeric) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L351-L352) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L660-L664) |
| <a id="mysql-hex-smallint-604d3e96" href="#mysql-hex-smallint-604d3e96">`mysql.hex(smallint) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L349-L350) |
| <a id="mysql-hex-pg-catalog-text-acb696b9" href="#mysql-hex-pg-catalog-text-acb696b9">`mysql.hex(text) → text`</a> | Encode the value in hexadecimal. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L341-L342) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L631-L648) |

## insert {#insert}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-insert-pg-catalog-text-integer-integer-pg-catalog-text-9f39da62" href="#mysql-insert-pg-catalog-text-integer-integer-pg-catalog-text-9f39da62">`mysql.insert(text, integer, integer, text) → text`</a> | Replace part of a string at a specified position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1566-L1595) |

## instr {#instr}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-instr-pg-catalog-bytea-pg-catalog-bytea-ecf6e0f5" href="#mysql-instr-pg-catalog-bytea-pg-catalog-bytea-ecf6e0f5">`mysql.instr(bytea, bytea) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-bytea-mysql-binary-n-52a36ed6" href="#mysql-instr-pg-catalog-bytea-mysql-binary-n-52a36ed6">`mysql.instr(bytea, mysql.binary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-bytea-mysql-hexlit-ab718f92" href="#mysql-instr-pg-catalog-bytea-mysql-hexlit-ab718f92">`mysql.instr(bytea, mysql.hexlit) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-bytea-mysql-varbinary-n-025a2322" href="#mysql-instr-pg-catalog-bytea-mysql-varbinary-n-025a2322">`mysql.instr(bytea, mysql.varbinary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-bytea-pg-catalog-text-a898548d" href="#mysql-instr-pg-catalog-bytea-pg-catalog-text-a898548d">`mysql.instr(bytea, text) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-binary-n-pg-catalog-bytea-8ad6471e" href="#mysql-instr-mysql-binary-n-pg-catalog-bytea-8ad6471e">`mysql.instr(mysql.binary_n, bytea) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-binary-n-mysql-binary-n-df65ea50" href="#mysql-instr-mysql-binary-n-mysql-binary-n-df65ea50">`mysql.instr(mysql.binary_n, mysql.binary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-binary-n-mysql-hexlit-a2434f91" href="#mysql-instr-mysql-binary-n-mysql-hexlit-a2434f91">`mysql.instr(mysql.binary_n, mysql.hexlit) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-binary-n-mysql-varbinary-n-c8739901" href="#mysql-instr-mysql-binary-n-mysql-varbinary-n-c8739901">`mysql.instr(mysql.binary_n, mysql.varbinary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-binary-n-pg-catalog-text-b7698894" href="#mysql-instr-mysql-binary-n-pg-catalog-text-b7698894">`mysql.instr(mysql.binary_n, text) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-hexlit-pg-catalog-bytea-f4ec1227" href="#mysql-instr-mysql-hexlit-pg-catalog-bytea-f4ec1227">`mysql.instr(mysql.hexlit, bytea) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-hexlit-mysql-binary-n-73f81377" href="#mysql-instr-mysql-hexlit-mysql-binary-n-73f81377">`mysql.instr(mysql.hexlit, mysql.binary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-hexlit-mysql-hexlit-77715a70" href="#mysql-instr-mysql-hexlit-mysql-hexlit-77715a70">`mysql.instr(mysql.hexlit, mysql.hexlit) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-hexlit-mysql-varbinary-n-b22bdcf2" href="#mysql-instr-mysql-hexlit-mysql-varbinary-n-b22bdcf2">`mysql.instr(mysql.hexlit, mysql.varbinary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-hexlit-pg-catalog-text-6058f933" href="#mysql-instr-mysql-hexlit-pg-catalog-text-6058f933">`mysql.instr(mysql.hexlit, text) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-varbinary-n-pg-catalog-bytea-95f2bb3e" href="#mysql-instr-mysql-varbinary-n-pg-catalog-bytea-95f2bb3e">`mysql.instr(mysql.varbinary_n, bytea) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-varbinary-n-mysql-binary-n-cb0c32b9" href="#mysql-instr-mysql-varbinary-n-mysql-binary-n-cb0c32b9">`mysql.instr(mysql.varbinary_n, mysql.binary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-varbinary-n-mysql-hexlit-42af8552" href="#mysql-instr-mysql-varbinary-n-mysql-hexlit-42af8552">`mysql.instr(mysql.varbinary_n, mysql.hexlit) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-varbinary-n-mysql-varbinary-n-342305d8" href="#mysql-instr-mysql-varbinary-n-mysql-varbinary-n-342305d8">`mysql.instr(mysql.varbinary_n, mysql.varbinary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-mysql-varbinary-n-pg-catalog-text-b47b7e51" href="#mysql-instr-mysql-varbinary-n-pg-catalog-text-b47b7e51">`mysql.instr(mysql.varbinary_n, text) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-numeric-numeric-21865e76" href="#mysql-instr-numeric-numeric-21865e76">`mysql.instr(numeric, numeric) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1038-L1046) |
| <a id="mysql-instr-numeric-pg-catalog-text-53253752" href="#mysql-instr-numeric-pg-catalog-text-53253752">`mysql.instr(numeric, text) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1028-L1036) |
| <a id="mysql-instr-pg-catalog-text-pg-catalog-bytea-4904abd9" href="#mysql-instr-pg-catalog-text-pg-catalog-bytea-4904abd9">`mysql.instr(text, bytea) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-text-mysql-binary-n-1a0eae86" href="#mysql-instr-pg-catalog-text-mysql-binary-n-1a0eae86">`mysql.instr(text, mysql.binary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-text-mysql-hexlit-f1997280" href="#mysql-instr-pg-catalog-text-mysql-hexlit-f1997280">`mysql.instr(text, mysql.hexlit) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-text-mysql-varbinary-n-c2936a16" href="#mysql-instr-pg-catalog-text-mysql-varbinary-n-c2936a16">`mysql.instr(text, mysql.varbinary_n) → integer`</a> | Find a substring within the first argument. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L593-L594) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1913-L1917) |
| <a id="mysql-instr-pg-catalog-text-numeric-802ea2d8" href="#mysql-instr-pg-catalog-text-numeric-802ea2d8">`mysql.instr(text, numeric) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1018-L1026) |
| <a id="mysql-instr-pg-catalog-text-pg-catalog-text-24666d6f" href="#mysql-instr-pg-catalog-text-pg-catalog-text-24666d6f">`mysql.instr(text, text) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1008-L1016) |
| <a id="mysql-instr-time-without-time-zone-numeric-593e4689" href="#mysql-instr-time-without-time-zone-numeric-593e4689">`mysql.instr(time without time zone, numeric) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1058-L1066) |
| <a id="mysql-instr-time-without-time-zone-pg-catalog-text-b4005c1b" href="#mysql-instr-time-without-time-zone-pg-catalog-text-b4005c1b">`mysql.instr(time without time zone, text) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1048-L1056) |
| <a id="mysql-instr-timestamp-with-time-zone-numeric-32047dc6" href="#mysql-instr-timestamp-with-time-zone-numeric-32047dc6">`mysql.instr(timestamp with time zone, numeric) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1098-L1106) |
| <a id="mysql-instr-timestamp-with-time-zone-pg-catalog-text-c1c4927f" href="#mysql-instr-timestamp-with-time-zone-pg-catalog-text-c1c4927f">`mysql.instr(timestamp with time zone, text) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1088-L1096) |
| <a id="mysql-instr-timestamp-without-time-zone-numeric-1fd74178" href="#mysql-instr-timestamp-without-time-zone-numeric-1fd74178">`mysql.instr(timestamp without time zone, numeric) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1078-L1086) |
| <a id="mysql-instr-timestamp-without-time-zone-pg-catalog-text-56885b91" href="#mysql-instr-timestamp-without-time-zone-pg-catalog-text-56885b91">`mysql.instr(timestamp without time zone, text) → integer`</a> | Find a substring within the first argument. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1068-L1076) |

## json_unquote {#json_unquote}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-json-unquote-json-3b3f89ff" href="#mysql-json-unquote-json-3b3f89ff">`mysql.json_unquote(json) → text`</a> | Remove JSON string quoting. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1530-L1536) |

## lcase {#lcase}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-lcase-bigint-ce249b16" href="#mysql-lcase-bigint-ce249b16">`mysql.lcase(bigint) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L828-L836) |
| <a id="mysql-lcase-pg-catalog-bytea-d0fc02c1" href="#mysql-lcase-pg-catalog-bytea-d0fc02c1">`mysql.lcase(bytea) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lcase-pg-catalog-date-9d07d25f" href="#mysql-lcase-pg-catalog-date-9d07d25f">`mysql.lcase(date) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L858-L866) |
| <a id="mysql-lcase-integer-93775faa" href="#mysql-lcase-integer-93775faa">`mysql.lcase(integer) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L818-L826) |
| <a id="mysql-lcase-mysql-smallint-366780bc" href="#mysql-lcase-mysql-smallint-366780bc">`mysql.lcase(mysql."smallint") → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L808-L816) |
| <a id="mysql-lcase-mysql-binary-n-684eb665" href="#mysql-lcase-mysql-binary-n-684eb665">`mysql.lcase(mysql.binary_n) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lcase-mysql-hexlit-04268f37" href="#mysql-lcase-mysql-hexlit-04268f37">`mysql.lcase(mysql.hexlit) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lcase-mysql-varbinary-n-17e48c0a" href="#mysql-lcase-mysql-varbinary-n-17e48c0a">`mysql.lcase(mysql.varbinary_n) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lcase-numeric-5f264aa6" href="#mysql-lcase-numeric-5f264aa6">`mysql.lcase(numeric) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L838-L846) |
| <a id="mysql-lcase-pg-catalog-text-d65fb0a8" href="#mysql-lcase-pg-catalog-text-d65fb0a8">`mysql.lcase(text) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L798-L806) |
| <a id="mysql-lcase-time-without-time-zone-22bfdfbd" href="#mysql-lcase-time-without-time-zone-22bfdfbd">`mysql.lcase(time without time zone) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L848-L856) |
| <a id="mysql-lcase-timestamp-with-time-zone-fe6b9305" href="#mysql-lcase-timestamp-with-time-zone-fe6b9305">`mysql.lcase(timestamp with time zone) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L878-L886) |
| <a id="mysql-lcase-timestamp-without-time-zone-9769d1eb" href="#mysql-lcase-timestamp-without-time-zone-9769d1eb">`mysql.lcase(timestamp without time zone) → text`</a> | Convert text to lowercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L868-L876) |

## left {#left}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-left-bigint-integer-131dd65f" href="#mysql-left-bigint-integer-131dd65f">`mysql."left"(bigint, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L653-L661) |
| <a id="mysql-left-pg-catalog-bytea-integer-926368a9" href="#mysql-left-pg-catalog-bytea-integer-926368a9">`mysql."left"(bytea, integer) → bytea`</a> | Take a prefix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1247-L1254) |
| <a id="mysql-left-pg-catalog-date-integer-00c9c340" href="#mysql-left-pg-catalog-date-integer-00c9c340">`mysql."left"(date, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L663-L671) |
| <a id="mysql-left-integer-integer-11ebe40e" href="#mysql-left-integer-integer-11ebe40e">`mysql."left"(integer, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L643-L651) |
| <a id="mysql-left-mysql-smallint-integer-e2f5cb53" href="#mysql-left-mysql-smallint-integer-e2f5cb53">`mysql."left"(mysql."smallint", integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L633-L641) |
| <a id="mysql-left-mysql-binary-n-integer-8f1fd48d" href="#mysql-left-mysql-binary-n-integer-8f1fd48d">`mysql."left"(mysql.binary_n, integer) → bytea`</a> | Take a prefix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1247-L1254) |
| <a id="mysql-left-mysql-hexlit-integer-3a879291" href="#mysql-left-mysql-hexlit-integer-3a879291">`mysql."left"(mysql.hexlit, integer) → bytea`</a> | Take a prefix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1247-L1254) |
| <a id="mysql-left-mysql-varbinary-n-integer-45b10cf1" href="#mysql-left-mysql-varbinary-n-integer-45b10cf1">`mysql."left"(mysql.varbinary_n, integer) → bytea`</a> | Take a prefix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1247-L1254) |
| <a id="mysql-left-pg-catalog-text-integer-de4d1a16" href="#mysql-left-pg-catalog-text-integer-de4d1a16">`mysql."left"(text, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L625-L631) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L129-L136) |
| <a id="mysql-left-time-without-time-zone-integer-10398029" href="#mysql-left-time-without-time-zone-integer-10398029">`mysql."left"(time without time zone, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L673-L681) |
| <a id="mysql-left-timestamp-with-time-zone-integer-7cb3969b" href="#mysql-left-timestamp-with-time-zone-integer-7cb3969b">`mysql."left"(timestamp with time zone, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L693-L701) |
| <a id="mysql-left-timestamp-without-time-zone-integer-8236673c" href="#mysql-left-timestamp-without-time-zone-integer-8236673c">`mysql."left"(timestamp without time zone, integer) → text`</a> | Take a prefix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L683-L691) |

## length {#length}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-length-pg-catalog-bytea-f6a9c01c" href="#mysql-length-pg-catalog-bytea-f6a9c01c">`mysql.length(bytea) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-length-mysql-binary-n-ad808779" href="#mysql-length-mysql-binary-n-ad808779">`mysql.length(mysql.binary_n) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-length-mysql-hexlit-d8632c98" href="#mysql-length-mysql-hexlit-d8632c98">`mysql.length(mysql.hexlit) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-length-mysql-varbinary-n-32f15010" href="#mysql-length-mysql-varbinary-n-32f15010">`mysql.length(mysql.varbinary_n) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-length-bigint-9c5af3e7" href="#mysql-length-bigint-9c5af3e7">`mysql.length(num bigint) → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L226-L238) |
| <a id="mysql-length-character-f210edcd" href="#mysql-length-character-f210edcd">`mysql.length(num character) → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L184-L196) |
| <a id="mysql-length-integer-6f1656fb" href="#mysql-length-integer-6f1656fb">`mysql.length(num integer) → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L198-L210) |
| <a id="mysql-length-mysql-smallint-6a724286" href="#mysql-length-mysql-smallint-6a724286">`mysql.length(num mysql."smallint") → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L212-L224) |
| <a id="mysql-length-numeric-a47ca264" href="#mysql-length-numeric-a47ca264">`mysql.length(num numeric) → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L240-L252) |
| <a id="mysql-length-pg-catalog-text-f5a9a29f" href="#mysql-length-pg-catalog-text-f5a9a29f">`mysql.length(text) → integer`</a> | Count the bytes in the value’s string representation. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L176-L182) |

## load_file {#load_file}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-load-file-pg-catalog-text-f20667a4" href="#mysql-load-file-pg-catalog-text-f20667a4">`mysql.load_file(text) → text`</a> | Read a server-side file. EXECUTE is restricted. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1597-L1605) |

## locate {#locate}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-locate-pg-catalog-bytea-pg-catalog-bytea-11cd8743" href="#mysql-locate-pg-catalog-bytea-pg-catalog-bytea-11cd8743">`mysql.locate(bytea, bytea) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-pg-catalog-bytea-integer-d45e0ab6" href="#mysql-locate-pg-catalog-bytea-pg-catalog-bytea-integer-d45e0ab6">`mysql.locate(bytea, bytea, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-binary-n-f61732d0" href="#mysql-locate-pg-catalog-bytea-mysql-binary-n-f61732d0">`mysql.locate(bytea, mysql.binary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-binary-n-integer-49209ad2" href="#mysql-locate-pg-catalog-bytea-mysql-binary-n-integer-49209ad2">`mysql.locate(bytea, mysql.binary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-hexlit-fbfe81dc" href="#mysql-locate-pg-catalog-bytea-mysql-hexlit-fbfe81dc">`mysql.locate(bytea, mysql.hexlit) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-hexlit-integer-1cd0d5ce" href="#mysql-locate-pg-catalog-bytea-mysql-hexlit-integer-1cd0d5ce">`mysql.locate(bytea, mysql.hexlit, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-varbinary-n-c0b15d43" href="#mysql-locate-pg-catalog-bytea-mysql-varbinary-n-c0b15d43">`mysql.locate(bytea, mysql.varbinary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-mysql-varbinary-n-integer-fb4c7c14" href="#mysql-locate-pg-catalog-bytea-mysql-varbinary-n-integer-fb4c7c14">`mysql.locate(bytea, mysql.varbinary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-pg-catalog-text-debae69c" href="#mysql-locate-pg-catalog-bytea-pg-catalog-text-debae69c">`mysql.locate(bytea, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-bytea-pg-catalog-text-integer-474b51ed" href="#mysql-locate-pg-catalog-bytea-pg-catalog-text-integer-474b51ed">`mysql.locate(bytea, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-pg-catalog-bytea-7ef709df" href="#mysql-locate-mysql-binary-n-pg-catalog-bytea-7ef709df">`mysql.locate(mysql.binary_n, bytea) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-pg-catalog-bytea-integer-10ed3524" href="#mysql-locate-mysql-binary-n-pg-catalog-bytea-integer-10ed3524">`mysql.locate(mysql.binary_n, bytea, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-binary-n-d74f0bc4" href="#mysql-locate-mysql-binary-n-mysql-binary-n-d74f0bc4">`mysql.locate(mysql.binary_n, mysql.binary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-binary-n-integer-f2a6e30c" href="#mysql-locate-mysql-binary-n-mysql-binary-n-integer-f2a6e30c">`mysql.locate(mysql.binary_n, mysql.binary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-hexlit-065b2a8a" href="#mysql-locate-mysql-binary-n-mysql-hexlit-065b2a8a">`mysql.locate(mysql.binary_n, mysql.hexlit) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-hexlit-integer-62025fe2" href="#mysql-locate-mysql-binary-n-mysql-hexlit-integer-62025fe2">`mysql.locate(mysql.binary_n, mysql.hexlit, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-varbinary-n-cdc61b75" href="#mysql-locate-mysql-binary-n-mysql-varbinary-n-cdc61b75">`mysql.locate(mysql.binary_n, mysql.varbinary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-mysql-varbinary-n-integer-caccf4fe" href="#mysql-locate-mysql-binary-n-mysql-varbinary-n-integer-caccf4fe">`mysql.locate(mysql.binary_n, mysql.varbinary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-pg-catalog-text-7978bbb1" href="#mysql-locate-mysql-binary-n-pg-catalog-text-7978bbb1">`mysql.locate(mysql.binary_n, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-binary-n-pg-catalog-text-integer-f28a1005" href="#mysql-locate-mysql-binary-n-pg-catalog-text-integer-f28a1005">`mysql.locate(mysql.binary_n, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-pg-catalog-bytea-d10ca5e4" href="#mysql-locate-mysql-hexlit-pg-catalog-bytea-d10ca5e4">`mysql.locate(mysql.hexlit, bytea) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-pg-catalog-bytea-integer-fcc3f5d5" href="#mysql-locate-mysql-hexlit-pg-catalog-bytea-integer-fcc3f5d5">`mysql.locate(mysql.hexlit, bytea, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-binary-n-3036d415" href="#mysql-locate-mysql-hexlit-mysql-binary-n-3036d415">`mysql.locate(mysql.hexlit, mysql.binary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-binary-n-integer-f9999630" href="#mysql-locate-mysql-hexlit-mysql-binary-n-integer-f9999630">`mysql.locate(mysql.hexlit, mysql.binary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-hexlit-eeab7933" href="#mysql-locate-mysql-hexlit-mysql-hexlit-eeab7933">`mysql.locate(mysql.hexlit, mysql.hexlit) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-hexlit-integer-a7f35e0b" href="#mysql-locate-mysql-hexlit-mysql-hexlit-integer-a7f35e0b">`mysql.locate(mysql.hexlit, mysql.hexlit, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-varbinary-n-e12c5bf9" href="#mysql-locate-mysql-hexlit-mysql-varbinary-n-e12c5bf9">`mysql.locate(mysql.hexlit, mysql.varbinary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-mysql-varbinary-n-integer-81be4806" href="#mysql-locate-mysql-hexlit-mysql-varbinary-n-integer-81be4806">`mysql.locate(mysql.hexlit, mysql.varbinary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-pg-catalog-text-48ed2421" href="#mysql-locate-mysql-hexlit-pg-catalog-text-48ed2421">`mysql.locate(mysql.hexlit, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-hexlit-pg-catalog-text-integer-675a660e" href="#mysql-locate-mysql-hexlit-pg-catalog-text-integer-675a660e">`mysql.locate(mysql.hexlit, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-pg-catalog-bytea-82c9cf59" href="#mysql-locate-mysql-varbinary-n-pg-catalog-bytea-82c9cf59">`mysql.locate(mysql.varbinary_n, bytea) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-pg-catalog-bytea-integer-1756fb96" href="#mysql-locate-mysql-varbinary-n-pg-catalog-bytea-integer-1756fb96">`mysql.locate(mysql.varbinary_n, bytea, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-binary-n-4042013a" href="#mysql-locate-mysql-varbinary-n-mysql-binary-n-4042013a">`mysql.locate(mysql.varbinary_n, mysql.binary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-binary-n-integer-d65d7270" href="#mysql-locate-mysql-varbinary-n-mysql-binary-n-integer-d65d7270">`mysql.locate(mysql.varbinary_n, mysql.binary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-hexlit-8c174b62" href="#mysql-locate-mysql-varbinary-n-mysql-hexlit-8c174b62">`mysql.locate(mysql.varbinary_n, mysql.hexlit) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-hexlit-integer-fff8643a" href="#mysql-locate-mysql-varbinary-n-mysql-hexlit-integer-fff8643a">`mysql.locate(mysql.varbinary_n, mysql.hexlit, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-varbinary-n-ff906f97" href="#mysql-locate-mysql-varbinary-n-mysql-varbinary-n-ff906f97">`mysql.locate(mysql.varbinary_n, mysql.varbinary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-mysql-varbinary-n-integer-4708c92f" href="#mysql-locate-mysql-varbinary-n-mysql-varbinary-n-integer-4708c92f">`mysql.locate(mysql.varbinary_n, mysql.varbinary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-pg-catalog-text-28a84f11" href="#mysql-locate-mysql-varbinary-n-pg-catalog-text-28a84f11">`mysql.locate(mysql.varbinary_n, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-mysql-varbinary-n-pg-catalog-text-integer-66900d19" href="#mysql-locate-mysql-varbinary-n-pg-catalog-text-integer-66900d19">`mysql.locate(mysql.varbinary_n, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-numeric-numeric-e27fd0f0" href="#mysql-locate-numeric-numeric-e27fd0f0">`mysql.locate(numeric, numeric) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L448-L456) |
| <a id="mysql-locate-numeric-numeric-integer-c40b7ca5" href="#mysql-locate-numeric-numeric-integer-c40b7ca5">`mysql.locate(numeric, numeric, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L555-L563) |
| <a id="mysql-locate-numeric-pg-catalog-text-7d734670" href="#mysql-locate-numeric-pg-catalog-text-7d734670">`mysql.locate(numeric, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L428-L436) |
| <a id="mysql-locate-numeric-pg-catalog-text-integer-44d9c07e" href="#mysql-locate-numeric-pg-catalog-text-integer-44d9c07e">`mysql.locate(numeric, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L535-L543) |
| <a id="mysql-locate-numeric-time-without-time-zone-55298d26" href="#mysql-locate-numeric-time-without-time-zone-55298d26">`mysql.locate(numeric, time without time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L468-L476) |
| <a id="mysql-locate-numeric-time-without-time-zone-integer-25fb778b" href="#mysql-locate-numeric-time-without-time-zone-integer-25fb778b">`mysql.locate(numeric, time without time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L575-L583) |
| <a id="mysql-locate-numeric-timestamp-with-time-zone-3cd84f31" href="#mysql-locate-numeric-timestamp-with-time-zone-3cd84f31">`mysql.locate(numeric, timestamp with time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L508-L516) |
| <a id="mysql-locate-numeric-timestamp-with-time-zone-integer-a7f42bec" href="#mysql-locate-numeric-timestamp-with-time-zone-integer-a7f42bec">`mysql.locate(numeric, timestamp with time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L615-L623) |
| <a id="mysql-locate-numeric-timestamp-without-time-zone-cf23a768" href="#mysql-locate-numeric-timestamp-without-time-zone-cf23a768">`mysql.locate(numeric, timestamp without time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L488-L496) |
| <a id="mysql-locate-numeric-timestamp-without-time-zone-integer-1770828f" href="#mysql-locate-numeric-timestamp-without-time-zone-integer-1770828f">`mysql.locate(numeric, timestamp without time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L595-L603) |
| <a id="mysql-locate-pg-catalog-text-pg-catalog-bytea-ab6d7645" href="#mysql-locate-pg-catalog-text-pg-catalog-bytea-ab6d7645">`mysql.locate(text, bytea) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-pg-catalog-bytea-integer-ccab468f" href="#mysql-locate-pg-catalog-text-pg-catalog-bytea-integer-ccab468f">`mysql.locate(text, bytea, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-binary-n-d35c40ee" href="#mysql-locate-pg-catalog-text-mysql-binary-n-d35c40ee">`mysql.locate(text, mysql.binary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-binary-n-integer-37be053d" href="#mysql-locate-pg-catalog-text-mysql-binary-n-integer-37be053d">`mysql.locate(text, mysql.binary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-hexlit-2d52d87c" href="#mysql-locate-pg-catalog-text-mysql-hexlit-2d52d87c">`mysql.locate(text, mysql.hexlit) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-hexlit-integer-5c5c3bec" href="#mysql-locate-pg-catalog-text-mysql-hexlit-integer-5c5c3bec">`mysql.locate(text, mysql.hexlit, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-varbinary-n-38a3f67b" href="#mysql-locate-pg-catalog-text-mysql-varbinary-n-38a3f67b">`mysql.locate(text, mysql.varbinary_n) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L589-L590) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-mysql-varbinary-n-integer-3ee0961a" href="#mysql-locate-pg-catalog-text-mysql-varbinary-n-integer-3ee0961a">`mysql.locate(text, mysql.varbinary_n, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L591-L592) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1902-L1910) |
| <a id="mysql-locate-pg-catalog-text-numeric-ae6a0890" href="#mysql-locate-pg-catalog-text-numeric-ae6a0890">`mysql.locate(text, numeric) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L438-L446) |
| <a id="mysql-locate-pg-catalog-text-numeric-integer-d442eeda" href="#mysql-locate-pg-catalog-text-numeric-integer-d442eeda">`mysql.locate(text, numeric, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L545-L553) |
| <a id="mysql-locate-pg-catalog-text-pg-catalog-text-6a3781f2" href="#mysql-locate-pg-catalog-text-pg-catalog-text-6a3781f2">`mysql.locate(text, text) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L418-L426) |
| <a id="mysql-locate-pg-catalog-text-pg-catalog-text-integer-776907bd" href="#mysql-locate-pg-catalog-text-pg-catalog-text-integer-776907bd">`mysql.locate(text, text, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L525-L533) |
| <a id="mysql-locate-pg-catalog-text-time-without-time-zone-7cd75f99" href="#mysql-locate-pg-catalog-text-time-without-time-zone-7cd75f99">`mysql.locate(text, time without time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L458-L466) |
| <a id="mysql-locate-pg-catalog-text-time-without-time-zone-integer-7e0702fc" href="#mysql-locate-pg-catalog-text-time-without-time-zone-integer-7e0702fc">`mysql.locate(text, time without time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L565-L573) |
| <a id="mysql-locate-pg-catalog-text-timestamp-with-time-zone-cac9a48d" href="#mysql-locate-pg-catalog-text-timestamp-with-time-zone-cac9a48d">`mysql.locate(text, timestamp with time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L498-L506) |
| <a id="mysql-locate-pg-catalog-text-timestamp-with-time-zone-integer-305baf29" href="#mysql-locate-pg-catalog-text-timestamp-with-time-zone-integer-305baf29">`mysql.locate(text, timestamp with time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L605-L613) |
| <a id="mysql-locate-pg-catalog-text-timestamp-without-time-zone-31614250" href="#mysql-locate-pg-catalog-text-timestamp-without-time-zone-31614250">`mysql.locate(text, timestamp without time zone) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L478-L486) |
| <a id="mysql-locate-pg-catalog-text-timestamp-without-time-zone-integer-afd372a0" href="#mysql-locate-pg-catalog-text-timestamp-without-time-zone-integer-afd372a0">`mysql.locate(text, timestamp without time zone, integer) → integer`</a> | Find the first occurrence of a substring, optionally from a given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L585-L593) |

## lower {#lower}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-lower-pg-catalog-bytea-c3f8388e" href="#mysql-lower-pg-catalog-bytea-c3f8388e">`mysql.lower(bytea) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lower-mysql-binary-n-86467ad6" href="#mysql-lower-mysql-binary-n-86467ad6">`mysql.lower(mysql.binary_n) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lower-mysql-hexlit-1d4dd569" href="#mysql-lower-mysql-hexlit-1d4dd569">`mysql.lower(mysql.hexlit) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-lower-mysql-varbinary-n-e42debf5" href="#mysql-lower-mysql-varbinary-n-e42debf5">`mysql.lower(mysql.varbinary_n) → bytea`</a> | Convert text to lowercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |

## lpad {#lpad}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-lpad-bigint-integer-pg-catalog-text-457a8afe" href="#mysql-lpad-bigint-integer-pg-catalog-text-457a8afe">`mysql.lpad(bigint, integer, text) → text`</a> | Pad on the left to the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1452-L1476) |
| <a id="mysql-lpad-pg-catalog-text-integer-pg-catalog-text-51ecb0d0" href="#mysql-lpad-pg-catalog-text-integer-pg-catalog-text-51ecb0d0">`mysql.lpad(text, integer, text) → text`</a> | Pad on the left to the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1426-L1450) |

## ltrim {#ltrim}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-ltrim-pg-catalog-bytea-c1ee65e5" href="#mysql-ltrim-pg-catalog-bytea-c1ee65e5">`mysql.ltrim(bytea) → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-pg-catalog-bytea-pg-catalog-any-7eb50748" href="#mysql-ltrim-pg-catalog-bytea-pg-catalog-any-7eb50748">`mysql.ltrim(bytea, "any") → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-binary-n-34f6a562" href="#mysql-ltrim-mysql-binary-n-34f6a562">`mysql.ltrim(mysql.binary_n) → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-binary-n-pg-catalog-any-a8ddb524" href="#mysql-ltrim-mysql-binary-n-pg-catalog-any-a8ddb524">`mysql.ltrim(mysql.binary_n, "any") → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-hexlit-99ac255b" href="#mysql-ltrim-mysql-hexlit-99ac255b">`mysql.ltrim(mysql.hexlit) → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-hexlit-pg-catalog-any-3f211d6b" href="#mysql-ltrim-mysql-hexlit-pg-catalog-any-3f211d6b">`mysql.ltrim(mysql.hexlit, "any") → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-varbinary-n-422d1f4b" href="#mysql-ltrim-mysql-varbinary-n-422d1f4b">`mysql.ltrim(mysql.varbinary_n) → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-ltrim-mysql-varbinary-n-pg-catalog-any-9f1788f8" href="#mysql-ltrim-mysql-varbinary-n-pg-catalog-any-9f1788f8">`mysql.ltrim(mysql.varbinary_n, "any") → bytea`</a> | Trim the beginning of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |

## make_set {#make_set}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-make-set-bigint-pg-catalog-text-2fb6bc28" href="#mysql-make-set-bigint-pg-catalog-text-2fb6bc28">`mysql.make_set(bigint, VARIADIC text[]) → text`</a> | Select strings using the set bits of a mask. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1686-L1722) |

## mid {#mid}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-mid-bigint-integer-baf8e2f2" href="#mysql-mid-bigint-integer-baf8e2f2">`mysql.mid(bigint, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1146-L1154) |
| <a id="mysql-mid-bigint-integer-integer-c0e7c4af" href="#mysql-mid-bigint-integer-integer-c0e7c4af">`mysql.mid(bigint, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1216-L1224) |
| <a id="mysql-mid-pg-catalog-date-integer-42d013a0" href="#mysql-mid-pg-catalog-date-integer-42d013a0">`mysql.mid(date, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1156-L1164) |
| <a id="mysql-mid-pg-catalog-date-integer-integer-ee14f548" href="#mysql-mid-pg-catalog-date-integer-integer-ee14f548">`mysql.mid(date, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1226-L1234) |
| <a id="mysql-mid-integer-integer-64860cd8" href="#mysql-mid-integer-integer-64860cd8">`mysql.mid(integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1136-L1144) |
| <a id="mysql-mid-integer-integer-integer-d8b22f80" href="#mysql-mid-integer-integer-integer-d8b22f80">`mysql.mid(integer, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1206-L1214) |
| <a id="mysql-mid-mysql-smallint-integer-c248adc0" href="#mysql-mid-mysql-smallint-integer-c248adc0">`mysql.mid(mysql."smallint", integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1126-L1134) |
| <a id="mysql-mid-mysql-smallint-integer-integer-721afb9e" href="#mysql-mid-mysql-smallint-integer-integer-721afb9e">`mysql.mid(mysql."smallint", integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1196-L1204) |
| <a id="mysql-mid-pg-catalog-text-integer-integer-588c7a4a" href="#mysql-mid-pg-catalog-text-integer-integer-588c7a4a">`mysql.mid(str text, pos integer, len integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L168-L174) |
| <a id="mysql-mid-pg-catalog-text-integer-3ef2fe77" href="#mysql-mid-pg-catalog-text-integer-3ef2fe77">`mysql.mid(text, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1116-L1124) |
| <a id="mysql-mid-time-without-time-zone-integer-75e70641" href="#mysql-mid-time-without-time-zone-integer-75e70641">`mysql.mid(time without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1166-L1174) |
| <a id="mysql-mid-time-without-time-zone-integer-integer-f5350e03" href="#mysql-mid-time-without-time-zone-integer-integer-f5350e03">`mysql.mid(time without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1236-L1244) |
| <a id="mysql-mid-timestamp-with-time-zone-integer-2db4c2e6" href="#mysql-mid-timestamp-with-time-zone-integer-2db4c2e6">`mysql.mid(timestamp with time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1186-L1194) |
| <a id="mysql-mid-timestamp-with-time-zone-integer-integer-4aa1472f" href="#mysql-mid-timestamp-with-time-zone-integer-integer-4aa1472f">`mysql.mid(timestamp with time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1256-L1264) |
| <a id="mysql-mid-timestamp-without-time-zone-integer-4b83e90e" href="#mysql-mid-timestamp-without-time-zone-integer-4b83e90e">`mysql.mid(timestamp without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1176-L1184) |
| <a id="mysql-mid-timestamp-without-time-zone-integer-integer-ec94a44a" href="#mysql-mid-timestamp-without-time-zone-integer-integer-ec94a44a">`mysql.mid(timestamp without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1246-L1254) |

## octet_length {#octet_length}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-octet-length-pg-catalog-bytea-036bd95f" href="#mysql-octet-length-pg-catalog-bytea-036bd95f">`mysql.octet_length(bytea) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-octet-length-mysql-binary-n-b070357c" href="#mysql-octet-length-mysql-binary-n-b070357c">`mysql.octet_length(mysql.binary_n) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-octet-length-mysql-hexlit-3684a643" href="#mysql-octet-length-mysql-hexlit-3684a643">`mysql.octet_length(mysql.hexlit) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |
| <a id="mysql-octet-length-mysql-varbinary-n-7e9a0d95" href="#mysql-octet-length-mysql-varbinary-n-7e9a0d95">`mysql.octet_length(mysql.varbinary_n) → integer`</a> | Count the bytes in the value’s string representation. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L489-L490) |

## replace {#replace}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-replace-pg-catalog-bytea-pg-catalog-any-pg-catalog-any-7f9bbb55" href="#mysql-replace-pg-catalog-bytea-pg-catalog-any-pg-catalog-any-7f9bbb55">`mysql.replace(bytea, "any", "any") → bytea`</a> | Replace occurrences of a search string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L549-L550) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1431-L1454) |
| <a id="mysql-replace-mysql-binary-n-pg-catalog-any-pg-catalog-any-82721083" href="#mysql-replace-mysql-binary-n-pg-catalog-any-pg-catalog-any-82721083">`mysql.replace(mysql.binary_n, "any", "any") → bytea`</a> | Replace occurrences of a search string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L549-L550) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1431-L1454) |
| <a id="mysql-replace-mysql-hexlit-pg-catalog-any-pg-catalog-any-065a6414" href="#mysql-replace-mysql-hexlit-pg-catalog-any-pg-catalog-any-065a6414">`mysql.replace(mysql.hexlit, "any", "any") → bytea`</a> | Replace occurrences of a search string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L549-L550) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1431-L1454) |
| <a id="mysql-replace-mysql-varbinary-n-pg-catalog-any-pg-catalog-any-448bd6ae" href="#mysql-replace-mysql-varbinary-n-pg-catalog-any-pg-catalog-any-448bd6ae">`mysql.replace(mysql.varbinary_n, "any", "any") → bytea`</a> | Replace occurrences of a search string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L549-L550) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1431-L1454) |
| <a id="mysql-replace-pg-catalog-text-pg-catalog-text-pg-catalog-text-dd9d8601" href="#mysql-replace-pg-catalog-text-pg-catalog-text-pg-catalog-text-dd9d8601">`mysql.replace(text, text, text) → text`</a> | Replace occurrences of a search string. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L565-L566) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1431-L1454) |

## right {#right}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-right-bigint-integer-46137fc2" href="#mysql-right-bigint-integer-46137fc2">`mysql."right"(bigint, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L731-L739) |
| <a id="mysql-right-pg-catalog-bytea-integer-13ed1620" href="#mysql-right-pg-catalog-bytea-integer-13ed1620">`mysql."right"(bytea, integer) → bytea`</a> | Take a suffix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1257-L1265) |
| <a id="mysql-right-pg-catalog-date-integer-b8d7e032" href="#mysql-right-pg-catalog-date-integer-b8d7e032">`mysql."right"(date, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L761-L769) |
| <a id="mysql-right-integer-integer-775be550" href="#mysql-right-integer-integer-775be550">`mysql."right"(integer, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L721-L729) |
| <a id="mysql-right-mysql-smallint-integer-a24a678a" href="#mysql-right-mysql-smallint-integer-a24a678a">`mysql."right"(mysql."smallint", integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L711-L719) |
| <a id="mysql-right-mysql-binary-n-integer-7645f157" href="#mysql-right-mysql-binary-n-integer-7645f157">`mysql."right"(mysql.binary_n, integer) → bytea`</a> | Take a suffix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1257-L1265) |
| <a id="mysql-right-mysql-hexlit-integer-78d8328e" href="#mysql-right-mysql-hexlit-integer-78d8328e">`mysql."right"(mysql.hexlit, integer) → bytea`</a> | Take a suffix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1257-L1265) |
| <a id="mysql-right-mysql-varbinary-n-integer-ea85e8d2" href="#mysql-right-mysql-varbinary-n-integer-ea85e8d2">`mysql."right"(mysql.varbinary_n, integer) → bytea`</a> | Take a suffix of the requested length. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L476-L478) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1257-L1265) |
| <a id="mysql-right-numeric-integer-db6e2c27" href="#mysql-right-numeric-integer-db6e2c27">`mysql."right"(numeric, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L741-L749) |
| <a id="mysql-right-pg-catalog-text-integer-ade61256" href="#mysql-right-pg-catalog-text-integer-ade61256">`mysql."right"(text, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L703-L709) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L139-L159) |
| <a id="mysql-right-time-without-time-zone-integer-bc8248df" href="#mysql-right-time-without-time-zone-integer-bc8248df">`mysql."right"(time without time zone, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L751-L759) |
| <a id="mysql-right-timestamp-with-time-zone-integer-001cf355" href="#mysql-right-timestamp-with-time-zone-integer-001cf355">`mysql."right"(timestamp with time zone, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L781-L789) |
| <a id="mysql-right-timestamp-without-time-zone-integer-390eac22" href="#mysql-right-timestamp-without-time-zone-integer-390eac22">`mysql."right"(timestamp without time zone, integer) → text`</a> | Take a suffix of the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L771-L779) |

## rpad {#rpad}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-rpad-bigint-integer-pg-catalog-text-2e1c0bf8" href="#mysql-rpad-bigint-integer-pg-catalog-text-2e1c0bf8">`mysql.rpad(bigint, integer, text) → text`</a> | Pad on the right to the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1504-L1528) |
| <a id="mysql-rpad-pg-catalog-text-integer-pg-catalog-text-57b08bfb" href="#mysql-rpad-pg-catalog-text-integer-pg-catalog-text-57b08bfb">`mysql.rpad(text, integer, text) → text`</a> | Pad on the right to the requested length. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1478-L1502) |

## rtrim {#rtrim}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-rtrim-pg-catalog-bytea-c9058a4d" href="#mysql-rtrim-pg-catalog-bytea-c9058a4d">`mysql.rtrim(bytea) → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-pg-catalog-bytea-pg-catalog-any-aeb3548e" href="#mysql-rtrim-pg-catalog-bytea-pg-catalog-any-aeb3548e">`mysql.rtrim(bytea, "any") → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-binary-n-0f1444ad" href="#mysql-rtrim-mysql-binary-n-0f1444ad">`mysql.rtrim(mysql.binary_n) → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-binary-n-pg-catalog-any-974a4c90" href="#mysql-rtrim-mysql-binary-n-pg-catalog-any-974a4c90">`mysql.rtrim(mysql.binary_n, "any") → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-hexlit-d6112da9" href="#mysql-rtrim-mysql-hexlit-d6112da9">`mysql.rtrim(mysql.hexlit) → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-hexlit-pg-catalog-any-e0544ae3" href="#mysql-rtrim-mysql-hexlit-pg-catalog-any-e0544ae3">`mysql.rtrim(mysql.hexlit, "any") → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-varbinary-n-6979373b" href="#mysql-rtrim-mysql-varbinary-n-6979373b">`mysql.rtrim(mysql.varbinary_n) → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L552-L553) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |
| <a id="mysql-rtrim-mysql-varbinary-n-pg-catalog-any-2ce51710" href="#mysql-rtrim-mysql-varbinary-n-pg-catalog-any-2ce51710">`mysql.rtrim(mysql.varbinary_n, "any") → bytea`</a> | Trim the end of a byte string. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L554-L555) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1457-L1478) |

## space {#space}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-space-integer-b88b1035" href="#mysql-space-integer-b88b1035">`mysql.space(integer) → text`</a> | Produce a string of spaces. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1613-L1624) |

## strcmp {#strcmp}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-strcmp-pg-catalog-text-pg-catalog-text-496fedaa" href="#mysql-strcmp-pg-catalog-text-pg-catalog-text-496fedaa">`mysql.strcmp(text, text) → integer`</a> | Compare two strings and return their ordering. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1550-L1564) |

## substr {#substr}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-substr-bigint-integer-401c48b1" href="#mysql-substr-bigint-integer-401c48b1">`mysql.substr(bigint, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1296-L1304) |
| <a id="mysql-substr-bigint-integer-integer-a66a2d81" href="#mysql-substr-bigint-integer-integer-a66a2d81">`mysql.substr(bigint, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1376-L1384) |
| <a id="mysql-substr-pg-catalog-bytea-integer-cabadc88" href="#mysql-substr-pg-catalog-bytea-integer-cabadc88">`mysql.substr(bytea, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-pg-catalog-bytea-integer-integer-726ddd15" href="#mysql-substr-pg-catalog-bytea-integer-integer-726ddd15">`mysql.substr(bytea, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-pg-catalog-date-integer-affae617" href="#mysql-substr-pg-catalog-date-integer-affae617">`mysql.substr(date, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1306-L1314) |
| <a id="mysql-substr-pg-catalog-date-integer-integer-746b49df" href="#mysql-substr-pg-catalog-date-integer-integer-746b49df">`mysql.substr(date, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1386-L1394) |
| <a id="mysql-substr-integer-integer-e9aa254d" href="#mysql-substr-integer-integer-e9aa254d">`mysql.substr(integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1286-L1294) |
| <a id="mysql-substr-integer-integer-integer-807b34c3" href="#mysql-substr-integer-integer-integer-807b34c3">`mysql.substr(integer, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1366-L1374) |
| <a id="mysql-substr-mysql-smallint-integer-9c3c363f" href="#mysql-substr-mysql-smallint-integer-9c3c363f">`mysql.substr(mysql."smallint", integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1276-L1284) |
| <a id="mysql-substr-mysql-smallint-integer-integer-1bc6dd64" href="#mysql-substr-mysql-smallint-integer-integer-1bc6dd64">`mysql.substr(mysql."smallint", integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1356-L1364) |
| <a id="mysql-substr-mysql-binary-n-integer-dc0d36e6" href="#mysql-substr-mysql-binary-n-integer-dc0d36e6">`mysql.substr(mysql.binary_n, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-mysql-binary-n-integer-integer-dc25b6b6" href="#mysql-substr-mysql-binary-n-integer-integer-dc25b6b6">`mysql.substr(mysql.binary_n, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-mysql-hexlit-integer-bcae0a93" href="#mysql-substr-mysql-hexlit-integer-bcae0a93">`mysql.substr(mysql.hexlit, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-mysql-hexlit-integer-integer-3cc184af" href="#mysql-substr-mysql-hexlit-integer-integer-3cc184af">`mysql.substr(mysql.hexlit, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-mysql-varbinary-n-integer-1d413284" href="#mysql-substr-mysql-varbinary-n-integer-1d413284">`mysql.substr(mysql.varbinary_n, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-mysql-varbinary-n-integer-integer-070e0939" href="#mysql-substr-mysql-varbinary-n-integer-integer-070e0939">`mysql.substr(mysql.varbinary_n, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substr-pg-catalog-text-integer-8fc847e7" href="#mysql-substr-pg-catalog-text-integer-8fc847e7">`mysql.substr(text, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1266-L1274) |
| <a id="mysql-substr-pg-catalog-text-integer-integer-a15da428" href="#mysql-substr-pg-catalog-text-integer-integer-a15da428">`mysql.substr(text, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1346-L1354) |
| <a id="mysql-substr-time-without-time-zone-integer-8563a4ab" href="#mysql-substr-time-without-time-zone-integer-8563a4ab">`mysql.substr(time without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1316-L1324) |
| <a id="mysql-substr-time-without-time-zone-integer-integer-b67efddf" href="#mysql-substr-time-without-time-zone-integer-integer-b67efddf">`mysql.substr(time without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1396-L1404) |
| <a id="mysql-substr-timestamp-with-time-zone-integer-96181fe1" href="#mysql-substr-timestamp-with-time-zone-integer-96181fe1">`mysql.substr(timestamp with time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1336-L1344) |
| <a id="mysql-substr-timestamp-with-time-zone-integer-integer-ace86012" href="#mysql-substr-timestamp-with-time-zone-integer-integer-ace86012">`mysql.substr(timestamp with time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1416-L1424) |
| <a id="mysql-substr-timestamp-without-time-zone-integer-6ca2bb0f" href="#mysql-substr-timestamp-without-time-zone-integer-6ca2bb0f">`mysql.substr(timestamp without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1326-L1334) |
| <a id="mysql-substr-timestamp-without-time-zone-integer-integer-4419f54b" href="#mysql-substr-timestamp-without-time-zone-integer-integer-4419f54b">`mysql.substr(timestamp without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1406-L1414) |

## substring {#substring}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-substring-bigint-integer-d349b705" href="#mysql-substring-bigint-integer-d349b705">`mysql."substring"(bigint, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L282-L290) |
| <a id="mysql-substring-bigint-integer-integer-05c3b537" href="#mysql-substring-bigint-integer-integer-05c3b537">`mysql."substring"(bigint, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L360-L368) |
| <a id="mysql-substring-pg-catalog-bytea-integer-5108ffea" href="#mysql-substring-pg-catalog-bytea-integer-5108ffea">`mysql."substring"(bytea, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-pg-catalog-bytea-integer-integer-20ab83f0" href="#mysql-substring-pg-catalog-bytea-integer-integer-20ab83f0">`mysql."substring"(bytea, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-pg-catalog-date-integer-65007061" href="#mysql-substring-pg-catalog-date-integer-65007061">`mysql."substring"(date, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L292-L300) |
| <a id="mysql-substring-pg-catalog-date-integer-integer-948f3ff1" href="#mysql-substring-pg-catalog-date-integer-integer-948f3ff1">`mysql."substring"(date, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L370-L378) |
| <a id="mysql-substring-integer-integer-f23a2402" href="#mysql-substring-integer-integer-f23a2402">`mysql."substring"(integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L272-L280) |
| <a id="mysql-substring-integer-integer-integer-0328d9ad" href="#mysql-substring-integer-integer-integer-0328d9ad">`mysql."substring"(integer, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L350-L358) |
| <a id="mysql-substring-mysql-smallint-integer-cf1557cd" href="#mysql-substring-mysql-smallint-integer-cf1557cd">`mysql."substring"(mysql."smallint", integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L262-L270) |
| <a id="mysql-substring-mysql-smallint-integer-integer-ebe7f7aa" href="#mysql-substring-mysql-smallint-integer-integer-ebe7f7aa">`mysql."substring"(mysql."smallint", integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L340-L348) |
| <a id="mysql-substring-mysql-binary-n-integer-71ba0568" href="#mysql-substring-mysql-binary-n-integer-71ba0568">`mysql."substring"(mysql.binary_n, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-mysql-binary-n-integer-integer-b39578f0" href="#mysql-substring-mysql-binary-n-integer-integer-b39578f0">`mysql."substring"(mysql.binary_n, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-mysql-hexlit-integer-63cb5a5f" href="#mysql-substring-mysql-hexlit-integer-63cb5a5f">`mysql."substring"(mysql.hexlit, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-mysql-hexlit-integer-integer-0a210f86" href="#mysql-substring-mysql-hexlit-integer-integer-0a210f86">`mysql."substring"(mysql.hexlit, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-mysql-varbinary-n-integer-110b3514" href="#mysql-substring-mysql-varbinary-n-integer-110b3514">`mysql."substring"(mysql.varbinary_n, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L483-L484) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-mysql-varbinary-n-integer-integer-dd75af3d" href="#mysql-substring-mysql-varbinary-n-integer-integer-dd75af3d">`mysql."substring"(mysql.varbinary_n, integer, integer) → bytea`</a> | Extract a slice starting at the given position. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L481-L482) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1297-L1315) |
| <a id="mysql-substring-pg-catalog-text-integer-a54ced88" href="#mysql-substring-pg-catalog-text-integer-a54ced88">`mysql."substring"(text, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L254-L260) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L119-L126) |
| <a id="mysql-substring-pg-catalog-text-integer-integer-06465db0" href="#mysql-substring-pg-catalog-text-integer-integer-06465db0">`mysql."substring"(text, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L332-L338) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L109-L116) |
| <a id="mysql-substring-time-without-time-zone-integer-01225917" href="#mysql-substring-time-without-time-zone-integer-01225917">`mysql."substring"(time without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L302-L310) |
| <a id="mysql-substring-time-without-time-zone-integer-integer-4425c864" href="#mysql-substring-time-without-time-zone-integer-integer-4425c864">`mysql."substring"(time without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L380-L388) |
| <a id="mysql-substring-timestamp-with-time-zone-integer-8f6c8868" href="#mysql-substring-timestamp-with-time-zone-integer-8f6c8868">`mysql."substring"(timestamp with time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L322-L330) |
| <a id="mysql-substring-timestamp-with-time-zone-integer-integer-dbb3da3d" href="#mysql-substring-timestamp-with-time-zone-integer-integer-dbb3da3d">`mysql."substring"(timestamp with time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L400-L408) |
| <a id="mysql-substring-timestamp-without-time-zone-integer-b39bb86a" href="#mysql-substring-timestamp-without-time-zone-integer-b39bb86a">`mysql."substring"(timestamp without time zone, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L312-L320) |
| <a id="mysql-substring-timestamp-without-time-zone-integer-integer-662bd194" href="#mysql-substring-timestamp-without-time-zone-integer-integer-662bd194">`mysql."substring"(timestamp without time zone, integer, integer) → text`</a> | Extract a slice starting at the given position. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L390-L398) |

## substring_index {#substring_index}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-substring-index-pg-catalog-text-pg-catalog-text-integer-47c0eef8" href="#mysql-substring-index-pg-catalog-text-pg-catalog-text-integer-47c0eef8">`mysql.substring_index(text, text, integer) → text`</a> | Split at a delimiter and take the requested part. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L1545-L1548) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mysm/strfuncs.c#L1369-L1431) |

## ucase {#ucase}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-ucase-bigint-3f89021f" href="#mysql-ucase-bigint-3f89021f">`mysql.ucase(bigint) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L918-L926) |
| <a id="mysql-ucase-pg-catalog-bytea-b574f133" href="#mysql-ucase-pg-catalog-bytea-b574f133">`mysql.ucase(bytea) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-ucase-pg-catalog-date-58afc217" href="#mysql-ucase-pg-catalog-date-58afc217">`mysql.ucase(date) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L948-L956) |
| <a id="mysql-ucase-integer-ce672230" href="#mysql-ucase-integer-ce672230">`mysql.ucase(integer) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L908-L916) |
| <a id="mysql-ucase-mysql-smallint-9e50c1f7" href="#mysql-ucase-mysql-smallint-9e50c1f7">`mysql.ucase(mysql."smallint") → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L898-L906) |
| <a id="mysql-ucase-mysql-binary-n-70736a68" href="#mysql-ucase-mysql-binary-n-70736a68">`mysql.ucase(mysql.binary_n) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-ucase-mysql-hexlit-1e7ecab7" href="#mysql-ucase-mysql-hexlit-1e7ecab7">`mysql.ucase(mysql.hexlit) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-ucase-mysql-varbinary-n-52c27ed8" href="#mysql-ucase-mysql-varbinary-n-52c27ed8">`mysql.ucase(mysql.varbinary_n) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-ucase-numeric-809f481f" href="#mysql-ucase-numeric-809f481f">`mysql.ucase(numeric) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L928-L936) |
| <a id="mysql-ucase-pg-catalog-text-9116e6ad" href="#mysql-ucase-pg-catalog-text-9116e6ad">`mysql.ucase(text) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L888-L896) |
| <a id="mysql-ucase-time-without-time-zone-9d171753" href="#mysql-ucase-time-without-time-zone-9d171753">`mysql.ucase(time without time zone) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L938-L946) |
| <a id="mysql-ucase-timestamp-with-time-zone-723c9976" href="#mysql-ucase-timestamp-with-time-zone-723c9976">`mysql.ucase(timestamp with time zone) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L968-L976) |
| <a id="mysql-ucase-timestamp-without-time-zone-c1f7e4a5" href="#mysql-ucase-timestamp-without-time-zone-c1f7e4a5">`mysql.ucase(timestamp without time zone) → text`</a> | Convert text to uppercase. Binary strings retain their bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/42-func-str.sql#L958-L966) |

## unhex {#unhex}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-unhex-bigint-2fc86ab9" href="#mysql-unhex-bigint-2fc86ab9">`mysql.unhex(bigint) → bytea`</a> | Decode hexadecimal digits into bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L363-L364) |
| <a id="mysql-unhex-pg-catalog-bytea-fe8deacd" href="#mysql-unhex-pg-catalog-bytea-fe8deacd">`mysql.unhex(bytea) → bytea`</a> | Decode hexadecimal digits into bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L361-L362) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L733-L777) |
| <a id="mysql-unhex-pg-catalog-text-0f35d722" href="#mysql-unhex-pg-catalog-text-0f35d722">`mysql.unhex(text) → bytea`</a> | Decode hexadecimal digits into bytes. | [SQL](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L359-L360) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L733-L777) |

## upper {#upper}

| Signature | Purpose | Source definition |
|---|---|---|
| <a id="mysql-upper-pg-catalog-bytea-a0134501" href="#mysql-upper-pg-catalog-bytea-a0134501">`mysql.upper(bytea) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-upper-mysql-binary-n-2a7526a6" href="#mysql-upper-mysql-binary-n-2a7526a6">`mysql.upper(mysql.binary_n) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-upper-mysql-hexlit-0349f29e" href="#mysql-upper-mysql-hexlit-0349f29e">`mysql.upper(mysql.hexlit) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |
| <a id="mysql-upper-mysql-varbinary-n-09970e86" href="#mysql-upper-mysql-varbinary-n-09970e86">`mysql.upper(mysql.varbinary_n) → bytea`</a> | Convert text to uppercase. Binary strings retain their bytes. | [Generated definition](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/sql/baseline/50-bin.sql#L558-L559) · [C](https://github.com/pgsty/pg_mysql/blob/0d51adcf5151ca5c98bc61de84f287ec3b4fe4a3/src/mys_binary.c#L1378-L1382) |

---

Backlinks:

- [Functions](/docs/mysql/reference/objects/functions/)
