Name
replace() — Find and replace substrings
Common Usage
replace(value,search,replacement)
Description
The replace() function returns a copy of
with each instance of the value
substring replaced by search
. If any of the parameters are NULL, a NULL will be
returned. If replacement
is an empty string, search
will be returned unmodified. Otherwise, all
parameters will be converted into text values.value
The replace() function also works on BLOB values,
although the result is returned as a text value and must be cast
back to a BLOB.
See Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access