Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Databricks SQL
Databricks Runtime
Returns the rightmost len characters from the string str.
right(str, len)
str: ASTRINGexpression.len: An integral number expression.
A STRING.
If len is less than or equal to 0, an empty string.
sql
> SELECT right('Spark SQL', 3);
SQL