RIGHT
Description
Returns the right part of a character string with the specified number of characters. (RIGHT in Transact-SQL).
Sample Source Pattern
Syntax
RIGHT ( character_expression , integer_expression ) Snowflake SQL complete documentation
RIGHT( <expr> , <length_expr> )UDF used to emulate the behavior
function RIGHT(string, index){
if(index< 0){
throw new RangeError('Invalid INDEX on RIGHT function');
}
return string.slice( string.length - index, string.length );
}Examples
Code:
Output:
Code:
Output:
Code:
Output:
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
