■ REPLACE 함수 : 문자열 대체하기

------------------------------------------------------------------------------------------------------------------------

SELECT REPLACE('CAT CALL'                              , 'C'         ) FROM DUAL; -- 'AT ALL'

 

SELECT REPLACE('Zero defects in period 99 reached 99%!', '99', '100' ) FROM DUAL; -- 'Zero defects in period 100 reached 100%!'

 

SELECT REPLACE('Customer didn''t have change.'         , '''', '''''') FROM DUAL; -- 'Customer didn''t have change.'

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요