|
求字符序号
S:select ascii('a') value
O:select ascii('a') value from dual
从序号求字符
S:select char(97) value
O:select chr(97) value from dual
连接
S:select '11'+'22'+'33' value
O:select CONCAT('11','22')||33 value from dual
子串位置 --返回3
S:select CHARINDEX('s','sdsq',2) value
O:select INSTR('sdsq','s',2) value from dual
求子串
S:select substring('abcd',2,2) value
O:select substr('abcd',2,2) value from dual
子串代替 返回aijklmnef
S:SELECT STUFF('abcdef', 2, 3, 'ijklmn') value
O:SELECT Replace('abcdef', 'bcd', 'ijklmn') value from dual
子串全部替换
S:没发现
O:select Translate('fasdbfasegas','fa','我' ) value from dual
长度
S:len,datalength
O:length
|
|