Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
This page describes how to use string functions in Lenses SQL Processors.
This page describes the ABBREVIATE function in Lenses SQL.
Abbreviates the expression to the given length and appends ellipses.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the CHOP function in Lenses SQL.
Returns the last character from an expression of type string.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the CONCAT function in Lenses SQL.
Returns the string representation of concatenating each expression
in the list. Null fields are left out.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
This page describes the CONTAINS function in Lenses SQL.
Returns true if an expression contains the given substring.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
This page describes the CENTER function in Lenses SQL.
Centers a String in a larger String of size N.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
This page describes the BASE64function in Lenses SQL.
Returns the input string using base64 algorithm.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
This page describes the CAPITALIZE function in Lenses SQL.
Capitalize the first letter of the expression.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
✓
✓
✓
✓
✓ | ✓ |
✓ | ✓ |
✓ | ✓ |
✓ | ✓ |
✓ | ✓ |
This page describes the DROPRIGHT function in Lenses SQL.
Removes the rightmost ’length’ characters from a string expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DECODE64 function in Lenses SQL.
Decodes a Base64 encrypted string.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the ENDSWITH function in Lenses SQL.
Returns true if an expression ends with the given substring.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DELETEWHITESPACE function in Lenses SQL.
Removes all whitespace from an expression of type string.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the INDEXOF function in Lenses SQL.
Returns the index of a substring in an expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the LEN function in Lenses SQL.
Returns the length of a string. Calculates length using characters as defined by UTF-16.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the LOWER function in Lenses SQL.
Returns the expression in lowercase.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DROPLEFT function in Lenses SQL.
Removes the left most ’length’ characters from a string expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REGEXP function in Lenses SQL.
Returns the matched groups otherwise null.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the DIGITS function in Lenses SQL.
Retains only the digits from a string expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the LPAD function in Lenses SQL.
Prepends the value of padExpr to the value of strExpr until the total length is lengthExpr.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REGEX_MATCHES function in Lenses SQL.
Appends the value of padExpr to the value of strExpr until the total length is lengthExpr.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the STRIPACCENTS function in Lenses SQL.
Removes diacritics (approximately the same as accents) from an expression. The case will not be altered.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REPLACE function in Lenses SQL.
Returns a new string in which all occurrences of a specified String in the current string are replaced with another specified String.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SUBSTR function in Lenses SQL.
Returns a new string that is a substring of this string.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the TAKERIGHT function in Lenses SQL.
Returns the rightmost ’length’ characters from a string expression
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the MKSTRING function in Lenses SQL.
Returns a string representation of any given value.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the TRUNCATE function in Lenses SQL.
Truncates a string so that it has at most N characters.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the TRIM function in Lenses SQL.
Removes leading and trailing spaces from the input expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
LPAD function was used to emulate a space this way, using the TRIM function.
To know more about LPAD.
This page describes the UPPER function in Lenses SQL.
Returns the expression in uppercase.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the UNCAPITALIZE function in Lenses SQL.
Change the first letter of each word in the expression to lowercase.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REGEX_MATCHES function in Lenses SQL.
Returns an array of captured groups.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the SWAPCASE function in Lenses SQL.
Swaps the case of a string expression.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the UUID function in Lenses SQL.
Returns a universally unique identifier.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the STARTSWITH function in Lenses SQL.
Returns true if an expression starts with the given substring.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the REVERSE function in Lenses SQL.
Reverses the order of the elements in the input.
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
This page describes the TAKELEFT function in Lenses SQL.
Returns the leftmost ’length’ characters from a string expression.
Available in:
Processors | SQL Studio |
---|
Sample code:
Output:
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓ | ✓ |