Skip to content

Returns the rightmost N characters of a string.

func.right(<str>, <len>)
func.right('StarRocks', 5)
┌─────────┐
'Rocks'
└─────────┘
RIGHT(<str>, <len>)
SELECT RIGHT('StarRocks', 5);
┌───────┐
│ Rocks │
└───────┘