trim(code) is not null:判断在两端截断空格后code是否为空
RTRIM(CODE) IS NOT NULL :判断右端截断空格后code是否为空
instr(accnt_code, '" + str_1+ "') > 0:判断accnt_code钟是不是包含字符串str_1PATINDEX('" + str_1+ "%', ACCNT_CODE) > 0 :
oracle中好象没有这个函数,sql server中这个函数是这个意思:查询模糊子串的位置功能和oracle中的instr差不多,但是看一下下边的例子就知道了:
select patindex('%d%q%','sdsfasdqe') value from table;
返回2,如果
select patindex('%dq%','sdsfasdqe') value from table;
则和oracle的instr一样返回7

解决方案 »

  1.   

    楼上的基本说明清楚了,instr(accnt_code, '" + str_1+ "') > 0
    instr函数是什么意思?instr就是查找字符串的位置,str_1在accnt_code里面的位置
      

  2.   

    找一个oracle的文档就能查出来。楼主有点懒惰哦。
      

  3.   

    补充instr
    instr(accnt_code, '*', m, n)
    查找字符串accnt_code中 '*' 的位置
    从字符穿第m个位置开始,第n个'*'