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

SUBSTR() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Extracts a substring from a string starting at a specified position

Syntax​

SUBSTR(string, start_position [, length])

Parameters​

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

Example​

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