- Categorias:
RTRIMMED_LENGTH¶
Retorna o comprimento de seu argumento, excluindo o espaço em branco final, mas incluindo o espaço em branco inicial.
Sintaxe¶
RTRIMMED_LENGTH( <string_expr> )
Notas de uso¶
- Equivalente a - {fn LENGTH(str)}em ODBC.
- Não é equivalente a LENGTH, LEN no Snowflake. 
Exemplos¶
SELECT RTRIMMED_LENGTH(' ABCD ');
+---------------------------+
| RTRIMMED_LENGTH(' ABCD ') |
|---------------------------|
|                         5 |
+---------------------------+