刚学oracle,请教一个问题!
我想定义一个oracle的函数,完成以下功能:3w0d: %CONTROLLER-5-UPDOWN: Controller E1 0/0/6, changed state to up
上面的字符串截取%后面的字符串返回,思路倒是有,就是不熟悉oracle的写法,请大家帮忙!
------解决方案--------------------select substr( '3w0d: %CONTROLLER-5-UPDOWN: Controller E1 0/0/6, changed state to up ',
instr( '3w0d: %CONTROLLER-5-UPDOWN: Controller E1 0/0/6, changed state to up ', '% ')+1)
from dual