IBM Books

SQL Reference

REPLACE



>>-REPLACE--(--expression1--,--expression2--,--expression3--)--><
 

The schema is SYSFUN.

Replaces all occurrences of expression2 in expression1 with expression3.

The first argument is a character string or binary string with a maximum length of 1048576 bytes. CHAR is converted to VARCHAR and LONG VARCHAR is converted to CLOB(1M). The second and third arguments are identical to the first argument.

The result of the function is:

The result can be null; if any argument is null, the result is the null value.

Example:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]