update AllPath set postion='/abc1/'+substr(postion,6,LENGTH(postion)-5)
我想取postion的指定位置的字符和我设定的字符合并存储到postion里,上面报无效的数字

解决方案 »

  1.   

    substr(postion,6,LENGTH(postion)-5) 
    这个出问题,字段存在LENGTH(postion)<=5长度的字符串分析一下原始数据就明白
      

  2.   

    update   AllPath   set   postion='/abc1/'+substr(postion,6,LENGTH(postion)-5) 
    把+换成||
    update   AllPath   set   postion='/abc1/'||substr(postion,6,LENGTH(postion)-5)