Ejemplo:
SELECT REPLACE('123123OpenMind', '123')
FROM DUAL;
Result: 'tech'
SELECT REPLACE('123OpenMind123', '123')
FROM DUAL;
Result:'tech'
SELECT REPLACE('222OpenMind', '2', '3')
FROM DUAL;
Result: '333tech'
SELECT REPLACE('0000123', '0')
FROM DUAL;
Result: '123'
SELECT REPLACE('0000123', '0', ' ')
FROM DUAL;
Result: ' 123'
0 comentarios:
Publicar un comentario