STRCMP(Lakehouse v2)
2つの文字列を辞書順で比較します。等しい場合は 0、str1 < str2 の場合は -1、str1 > str2 の場合は 1 を返します。
Analyze 構文
Section titled “Analyze 構文”func.strcmp(<str1>, <str2>)Analyze の例
Section titled “Analyze の例”func.strcmp('abc', 'abd')
┌────┐│ -1 │└────┘SQL 構文
Section titled “SQL 構文”STRCMP(<str1>, <str2>)SQL の例
Section titled “SQL の例”SELECT STRCMP('abc', 'abd');
┌────┐│ -1 │└────┘