RIGHT

Returns the rightmost N characters of a string.

Analyze Syntax

func.right(<str>, <len>)

Analyze Examples

func.right('StarRocks', 5)

┌─────────┐
 'Rocks'  
└─────────┘

SQL Syntax

RIGHT(<str>, <len>)

SQL Examples

SELECT RIGHT('StarRocks', 5);

┌───────┐
 Rocks  
└───────┘