scalar
POSITION
Returns first one-based match position, or zero when absent. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
POSITION(needle IN text)Working Example
Example Snippetsql
SELECT position('at' IN 'catalog');