STRCMP (Lakehouse v2)
Compare deux chaînes dans l’ordre lexicographique. Renvoie 0 si elles sont égales, -1 si str1 < str2, 1 si str1 > str2.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.strcmp(<str1>, <str2>)Exemples Analyze
Section intitulée « Exemples Analyze »func.strcmp('abc', 'abd')
┌────┐│ -1 │└────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »STRCMP(<str1>, <str2>)Exemples SQL
Section intitulée « Exemples SQL »SELECT STRCMP('abc', 'abd');
┌────┐│ -1 │└────┘