SUBSTRING(Lakehouse v2)
指定した位置から始まる部分文字列を返します。SUBSTR の別名です。
Analyze 構文
Section titled “Analyze 構文”func.substring(<str>, <pos>[, <len>])Analyze の例
Section titled “Analyze の例”func.substring('StarRocks', 1, 4)
┌────────┐│ 'Star' │└────────┘SQL 構文
Section titled “SQL 構文”SUBSTRING(<str>, <pos>[, <len>])SQL の例
Section titled “SQL の例”SELECT SUBSTRING('StarRocks', 1, 4);
┌──────┐│ Star │└──────┘