scalar

TRIM

Removes leading and trailing spaces by default, not all possible whitespace. Example target: PostgreSQL 17. No tables or extensions required.

Formal Syntax & Structure

sql syntaxsql
TRIM(text)

Working Example

Example Snippetsql
SELECT trim('  item  ');
SQL Reference