For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

TRIM() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Removes leading and trailing spaces from a string

Syntax​

TRIM([LEADING | TRAILING | BOTH] [characters] FROM string)

Parameters​

ParameterDescriptionData TypeRequired
stringString valueStringYes

Notes​

  • If no direction (LEADING, TRAILING, BOTH) is specified, BOTH is assumed
  • If no characters are specified, it trims spaces (' ')

Example​

SELECT
TRIM(col)
FROM
rippling.employee.Employee
LIMIT
5;