Categories: String
BTRIM
Trims leading and trailing characters from a string.
Syntax
BTRIM(expression STRING, trim_text STRING) → STRING
- expression: String expression to be trimmed
- trim_text: Leading and trailing chracters to trim from the input expression. If this parameter is not specified, then the spaces will be trimmed from the input expression.
Examples
SELECT BTRIM(' dremio ')
-- dremio
SELECT BTRIM('~/~/~/dremio~', '~')
-- /~/~/dremio
SELECT BTRIM('---dremio-', '-')
-- dremio
SELECT BTRIM('stringvalue', 'string')
-- value
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.