STRCMP (Lakehouse v2)
Compara duas cadeias lexicograficamente. Devolve 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 SQL
Seção intitulada “Exemplos SQL”SELECT STRCMP('abc', 'abd');
┌────┐│ -1 │└────┘