scalar
SUBSTRING
Extracts characters from a one-based starting position in this form. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
SUBSTRING(text FROM start FOR count)Working Example
Example Snippetsql
SELECT substring('catalog' FROM 2 FOR 3);