Skip to main content

String functions

UPPER

Converts a string to uppercase.

LOWER

Converts a string to lowercase.

TRIM

Removes leading and trailing whitespace.

LTRIM / RTRIM

Removes leading (LTRIM) or trailing (RTRIM) whitespace.

LENGTH

Returns the number of characters in a string.

CONCAT

Concatenates multiple strings.

CONCAT_WS

Concatenates strings with a separator.

SUBSTRING

Extracts a portion of a string.
String positions are 1-based, not 0-based.

LEFT / RIGHT

Returns leftmost or rightmost characters.

REPLACE

Replaces occurrences of a substring.

SPLIT

Splits a string into an array.

LPAD / RPAD

Pads a string to a specified length.

REGEXP_EXTRACT

Extracts a substring matching a regular expression.

LEVENSHTEIN

Calculates the edit distance between two strings.

Date & Time Functions

Temporal operations

Conditional Functions

IF, COALESCE, NULLIF

All Functions

Browse all function categories

Data Types

STRING type reference