scalar-extension

overlay

Replace a segment beginning at a one-based character position.

Formal Syntax & Structure

sql syntaxsql
overlay(string PLACING replacement FROM start FOR count)

Working Example

Example Snippetsql
SELECT overlay('abcde' PLACING 'XY' FROM 2 FOR 3);
SQL Reference