Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Oct 14, 2024
Send us feedback
right
Applies to: Databricks SQL Databricks Runtime
Returns the rightmost len characters from the string str.
len
str
right(str, len)
str: A STRING expression.
STRING
len: An integral number expression.
A STRING.
If len is less than or equal to 0, an empty string.
> SELECT right('Spark SQL', 3); SQL
substr function
substring function
left function