1、trim:用来去除一个字符串的开头或结尾(或两者)的字符。
(1)如果指定
leading参数,oracle数据库将去除任何等于trim_character的开头字符
例:select trim(leading 'x' from 'xdylan') from dual;----dylan
(2)
traling:去除结尾字符
例:select trim(traling 'x' from 'dylanx') from dual;----dylan
(3)
both,或者都不指定,去除开头和结尾的字符
例:select trim(both 'x' from 'xdylanx') from dual;----dylan
2、replace(x, old, new):在x中查找old,并替换为new;
3、substr:截取字符串;
4、(1)ad