TRIM_BOTH (Lakehouse v1)
指定したトリム文字列を、文字列の先頭、末尾、または両側からすべて削除します。
関連項目: TRIM
Analyze の構文
Section titled “Analyze の構文”func.trim_both(<string>, <trim_string>)Analyze の例
Section titled “Analyze の例”func.trim_both('xxdatabendxx', 'x')┌──────────────────────────────────────┐│ func.trim_both('xxdatabendxx', 'x') │├──────────────────────────────────────┤│ databend │└──────────────────────────────────────┘TRIM_BOTH(<string>, <trim_string>)SELECT TRIM_BOTH('xxdatabendxx', 'xxx'), TRIM_BOTH('xxdatabendxx', 'xx'), TRIM_BOTH('xxdatabendxx', 'x');
┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐│ trim_both('xxdatabendxx', 'xxx') │ trim_both('xxdatabendxx', 'xx') │ trim_both('xxdatabendxx', 'x') │├──────────────────────────────────┼─────────────────────────────────┼────────────────────────────────┤│ xxdatabendxx │ databend │ databend │└─────────────────────────────────────────────────────────────────────────────────────────────────────┘