scalar
REPLACE
Replaces occurrences of a substring, not a regular expression. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
REPLACE(text,from_text,to_text)Working Example
Example Snippetsql
SELECT replace('a-b-a','a','x');