array
array_replace
Substitutes the new value for each occurrence of the old value.
Formal Syntax & Structure
sql syntaxsql
array_replace(array, old, new)Working Example
Example Snippetsql
SELECT array_replace(ARRAY[4,8,4],4,12);Substitutes the new value for each occurrence of the old value.
array_replace(array, old, new)SELECT array_replace(ARRAY[4,8,4],4,12);