本帖最后由 wc1217 于 2013-07-16 15:04:00 编辑

解决方案 »

  1.   

    substr()是oracle的内置函数,主要是字符串的截取。substr(char,position,length);你的语法是对的。在oracle11g中是可以运行的。不知道版本低的问题。
    我觉得应该是版本低的问题。
      

  2.   

    substr(name,0,8),修改为substr(name,1,8)试试看
      

  3.   


    有何根据?修改为
    substr(name,-100,8)都不应该报错.The position at which the first character of the returned string begins.When position is 0 (zero), then it is treated as 1.When position is positive, then the function counts from the beginning of string to find the first character.When position is negative, then the function counts backward from the end of string.
      

  4.   


    有何根据?修改为
    substr(name,-100,8)都不应该报错.The position at which the first character of the returned string begins.When position is 0 (zero), then it is treated as 1.When position is positive, then the function counts from the beginning of string to find the first character.When position is negative, then the function counts backward from the end of string.
    那就抱歉了,我不知道是怎么回事了