oracle 截取字符(substr),检索字符位置(instr)

SUBSTR(string,start_position,[length]) 求子字符串,返回字符串

解释: string 元字符串
start_position 开始位置(从0开始)
length 可选项,子字符串的个数

INSTR(string,subString,position,ocurrence)查找字符串位置

解释: string:源字符串
subString:要查找的子字符串
position:查找的开始位置
ocurrence:源字符串中第几次出现的子字符串

原文地址:https://www.cnblogs.com/Leo-Cjh/p/13921302.html