right
function
Applies to: Databricks SQL Databricks Runtime
Returns the rightmost len
characters from the string str
.
Syntax
right(str, len)
Arguments
str
: ASTRING
expression.len
: An integral number expression.
Returns
A STRING
.
If len is less than or equal to 0, an empty string.
Examples
> SELECT right('Spark SQL', 3);
SQL
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for