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