CONCAT(str1, str2, ...) | Combines all input strings to one string.
SELECT CONCAT('Hello', ' ', 'world', '!')
|
LENGTH(text) | Returns a number of characters in the input text.
SELECT LENGTH('Hello world!')
|
LOWER(text) | Changes the case of text to the lower case.
SELECT LOWER('Hello world!')
|
UPPER(text) | Changes the case of text to the upper case.
SELECT LOWER('Hello world!')
|
REVERSE(text) | Reverses the input text.
SELECT REVERSE('foobar')
|
LEFT(text, number) | Trims the number of characters from the beginning of a text.
SELECT LEFT('foobar', 3)
|
RIGHT(text, number) | Trims the number of characters from the end of a text.
SELECT RIGHT('foobar', 3)
|
LPAD(text, length, text_to_add) | Adds new characters to the beginning of a text input until it has the specified length.
SELECT LPAD('8319', 16, 'X')
|
RPAD(text, length, text_to_add) | Adds new characters to the end of a text input until it has the specified length.
SELECT RPAD('1248', 8, '_')
|
SPLIT_PART(text, substring, number) | Splits a text input by a substring into multiple parts and returns the specified part. The parts numbers start with 1.
SELECT SPLIT_PART('foo_bar', '_', 2)
|
REPEAT(text, number) | Repeats a text input a number of times.
SELECT REPEAT('abc', 3)
|
REPLACE(text, substring, new_string) | Replaces a substring in a text with a new string.
SELECT REPLACE('foobar', 'foo', '')
|
REGEXP_REPLACE(text, pattern, new_string) | Replaces substrings of a text which match an input pattern with a new string.
SELECT REGEXP_REPLACE('foobar@gmail.com', '\A\w+@', '')
|
SUBSTRING(text_input, regex) | Returns the first matched group.
SELECT SUBSTRING('Sally (engineer)', '(\w+)\s\((\w+)\)')
|
REGEXP_MATCHES(text_input, regex) | Returns an array of all captured substrings.
SELECT regexp_matches('Sally (engineer)', '(\w+)\s\((\w+)\)')
|