updateflag的長度為60個字符﹐而你已經給它賦值長度61個字符﹐所以出錯

解决方案 »

  1.   

    那应该怎么改呢?把updateflag的第一位变为0!!谢谢
      

  2.   

    updateflag的長度為60個字符﹐而你已經給它賦值長度61個字符﹐所以出錯
    ------------------------------------------------------------------
    这句话说得不对。char型字段会自动截取60位的字串的,不会出错。还可以这么写:
    update personinfo set updateflag=stuff(updateflag,1,1,'0')