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

SUBSTRING() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns a substring from a string (alias for SUBSTR).

Aliases: SUBSTR — equivalent spellings; same function and parameters.

Syntax​

SUBSTRING(string, start, [length])

Parameters​

ParameterDescriptionData TypeRequired
stringString valueStringYes
startStarting date or timestampIntegerYes
lengthMaximum number of characters to returnIntegerNo

Example​

SELECT
SUBSTRING(full_name, 1, 3)
FROM
rippling.employee.Employee
LIMIT
5;