猿问

请问关于oracle的 replace函数的用法?

oracle的 replace函数的用法


蓝山帝景
浏览 965回答 3
3回答

翻过高山走不出你

SELECT REPLACE('JACK and JUE','J','BL') "Changes"FROM DUAL;Changes--------------BLACK and BLUE

人到中年有点甜

replace( string1, string_to_replace, [ replacement_string ] )For example:replace('123123tech', '123'); would return 'tech'replace('123tech123', '123'); would return 'tech'replace('222tech', '2', '3'); would return '333tech'replace('0000123', '0'); would return '123'replace('0000123', '0', ' '); would return ' 123'
随时随地看视频慕课网APP

相关分类

Oracle
Python
我要回答