RIGHT (Lakehouse v1)
Retorna os len caracteres mais à direita da string str, ou NULL se algum argumento for NULL.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.right(<str>, <len>)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.right('foobarbar', 4)┌────────────────────────────┐│ func.right('foobarbar', 4) │├────────────────────────────┤│ rbar │└────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”RIGHT(<str>, <len>);Argumentos
Seção intitulada “Argumentos”| Argumentos | Descrição |
|---|---|
<str> |
A string principal da qual os caracteres serão extraídos |
<len> |
A quantidade de caracteres |
Tipo de retorno
Seção intitulada “Tipo de retorno”VARCHAR
Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT RIGHT('foobarbar', 4);┌───────────────────────┐│ RIGHT('foobarbar', 4) │├───────────────────────┤│ rbar │└───────────────────────┘