Description
Returns a substring from a string (alias for SUBSTR).
Aliases: SUBSTR — equivalent spellings; same function and parameters.
Syntax
SUBSTRING(string, start, [length])
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| string | String value | String | Yes |
| start | Starting date or timestamp | Integer | Yes |
| length | Maximum number of characters to return | Integer | No |
Example
SELECT
SUBSTRING(full_name, 1, 3)
FROM
rippling.employee.Employee
LIMIT
5;