chr
Returns the Unicode code point n as a single character string.
Examples:
examples.sql
codepoint
Returns the Unicode code point of the only character of string
.
Examples:
examples.sql
concat
Returns the concatenation of string1, string2, …, stringN. This function provides the same functionality as the SQL-standard concatenation operator (||).
Examples:
examples.sql
concat_ws
Using the first array string0
element as separator, returns the concatenation of all subsequent strings string1, string2, … If `string0“ is null, then the return value is null. Any null values provided in the arguments after the separator are skipped.
Examples:
examples.sql
length
Returns the length of string in characters.
Examples:
examples.sql
levenshtein_distance
Returns the Levenshtein edit distance of string1 and string2, i.e. the minimum number of single-character edits (insertions, deletions or substitutions) needed to change string1 into string2.
Supported Signatures
lower
Converts string to lowercase.
Examples:
examples.sql
lpad
Left pads string to size characters with padstring. If size is less than the length of string, the result is truncated to size characters. size must not be negative and padstring must be non-empty.
Examples:
examples.sql
ltrim
Removes leading whitespace from string.
Examples:
examples.sql
replace
Removes all instances of search from string.
Examples:
examples.sql
reverse
Returns string with the characters in reverse order.
Examples:
examples.sql
rpad
Right pads string to size characters with padstring. If size is less than the length of string, the result is truncated to size characters. size must not be negative and padstring must be non-empty.
Examples:
examples.sql
rtrim
Removes trailing whitespace from string.
Examples:
examples.sql
split
Splits string on delimiter and returns an array.
Examples:
examples.sql
split_part
Splits string on delimiter and returns the field index. Field indexes start with 1. If the index is larger than the number of fields, then null is returned.
Examples:
examples.sql
starts_with
Tests whether substring is a prefix of string.
Examples:
examples.sql
strpos
Returns the starting position of the first instance of substring in string. Positions start with 1. If not found, 0 is returned.
Examples:
examples.sql
substr
This is an alias for substring().
Examples:
examples.sql
substring
Returns the rest of string from the starting position start. Positions start with 1. A negative starting position is interpreted as being relative to the end of the string.
Examples:
examples.sql
translate
Returns the source string translated by replacing characters found in the from string with the corresponding characters in the to string. If the from string contains duplicates, only the first is used. If the source character does not exist in the from string, the source character will be copied without translation. If the index of the matching character in the from string is beyond the length of the to string, the source character will be omitted from the resulting string.
Examples:
examples.sql
trim
Removes any leading and/or trailing characters as specified up to and including string from source.
Examples:
examples.sql
upper
Converts string to uppercase.
Examples:
examples.sql