Skip to main content

TRIM_BOTH

从字符串的两端移除特定字符。

另请参阅:TRIM

语法

TRIM_BOTH(<string>, <trim_character>)

示例

SELECT TRIM_BOTH('xxdatabendxx', 'xx');

┌─────────────────────────────────┐
│ trim_both('xxdatabendxx', 'xx')
├─────────────────────────────────┤
│ databend │
└─────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today