oracle REPLACE function introduction oracle REPLACE function introduction

 

turn:

oracle REPLACE function introduction

oracle REPLACE function value is another value instead of a string.

For example, instead of using a matching number of letters for each occurrence. REPLACE format is as follows:

REPLACE (char, search_string [, replace_string]) If the value of replace_string variable is not specified, then when the value found search_string variables will be deleted. Character data input may be any type --CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB or NCLOB.

 

The following are the results of the implementation and the sql replace function using:

select replace('0123456789','0','a') from dual;--a123456789 select replace('0123456789','0','') from dual;--123456789 select replace('0123456789','0') from dual;--123456789

 

Guess you like

Origin www.cnblogs.com/libin6505/p/11719859.html