SUBSTRING
Extracts a substring starting at the specified position with optional length.
Category: String Functions
Syntax
SUBSTRING(str FROM start)SUBSTRING(str FROM start FOR length)Arguments
- string
varcharString input value. - from_pos
integerInteger input value. - count
integerInteger input value.
Returns
VARCHAR — Returns the computed result as VARCHAR.
Usage Notes
Canonical SQL-92 form is SUBSTRING(str FROM start FOR length). Opteryx also accepts SUBSTRING(str[, start[, length]]).