TRIM_BOTH (Lakehouse v1)
Supprime toutes les occurrences de la chaîne de suppression indiquée au début, à la fin ou des deux côtés de la chaîne.
Voir aussi : TRIM
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.trim_both(<string>, <trim_string>)Exemples Analyze
Section intitulée « Exemples Analyze »func.trim_both('xxdatabendxx', 'x')┌──────────────────────────────────────┐│ func.trim_both('xxdatabendxx', 'x') │├──────────────────────────────────────┤│ databend │└──────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TRIM_BOTH(<string>, <trim_string>)Exemples SQL
Section intitulée « Exemples SQL »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 │└─────────────────────────────────────────────────────────────────────────────────────────────────────┘