SUBSTR(Lakehouse v2)
指定した位置から始まる部分文字列を返します。長さは省略できます。
Analyze 構文
Section titled “Analyze 構文”func.substr(<str>, <pos>[, <len>])Analyze の例
Section titled “Analyze の例”func.substr('StarRocks', 5, 5)
┌─────────┐│ 'Rocks' │└─────────┘SQL 構文
Section titled “SQL 構文”SUBSTR(<str>, <pos>[, <len>])SQL の例
Section titled “SQL の例”SELECT SUBSTR('StarRocks', 5, 5);
┌───────┐│ Rocks │└───────┘