STRCMP (Lakehouse v2)
Compara duas strings lexicograficamente. Retorna 0 se forem iguais, -1 se str1 < str2, 1 se str1 > str2.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.strcmp(<str1>, <str2>)Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.strcmp('abc', 'abd')
┌────┐│ -1 │└────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”STRCMP(<str1>, <str2>)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT STRCMP('abc', 'abd');
┌────┐│ -1 │└────┘