Btrim
String Function
Description
Removes leading and trailing characters from a string.
Click here to navigate to the PostgreSQL docs page for this syntax.
Grammar Syntax
BTRIM(string TEXT, pattern TEXT)
Sample Source Patterns
PostgreSQL
SELECT BTRIM('XXXSampleXXX', 'XXX');
Snowflake
SELECT TRIM('XXXSampleXXX', 'XXX');
Last updated
Was this helpful?