oracle-01722,函数subtr,instr

oracle-01722:无效的数字
1. 多半是数字类型和字符类型字段做关联了


oracle函数subtr
>http://www.cnblogs.com/nicholas_f/articles/1526063.html
substr(字符串,截取开始位置,截取长度) //返回截取的字
substr('Hello World',0,1) //返回结果为 'H' *从字符串第一个字符开始截取长度为1的字符串
substr('Hello World',1,1) //返回结果为 'H' *0和1都是表示截取的开始位置为第一个字符
substr('Hello World',2,4) //返回结果为 'ello'
substr('Hello World',-3,3)//返回结果为 'rld' *负数(-i)表示截取的开始位置为字符串右端向左数第i个字符


oracle函数instr
>http://1055592535.iteye.com/blog/1676235
instr(sourceString,destString,start,appearPosition)
instr('源字符串' , '目标字符串' ,'开始位置','第几次出现')
select instr('abcdefghbc','bc',3) position from dual;

原文地址:https://www.cnblogs.com/alisonGavin/p/7205288.html