Description
Function | Return Type | Description | Example | Result |
---|---|---|---|---|
overlay(string placing string from int[for {{int}}]) | text | Replace substring | overlay('Txxxxas' placing 'hom' from 2 for 4) | Thomas |
For example:
SELECT OVERLAY('abcdef' PLACING '45' FROM 4) AS "abc45f"; SELECT OVERLAY('yabadoo' PLACING 'daba' FROM 5) AS "yabadaba"; SELECT OVERLAY('yabadoo' PLACING 'daba' FROM 5 FOR 0) AS "yabadabadoo"; SELECT OVERLAY('babosa' PLACING 'ubb' FROM 2 FOR 4) AS "bubba";