12830047
14834633
12514780
14675897
1605564
1380825
14287142
14777157
11088396
12895978
14098193
14639272
14156977
1235362
14907329
11578505
1550974
14866396
这些数字为要去掉前面的1怎么去啊。

解决方案 »

  1.   

    update tt set f1=mid(f1,2)
      

  2.   

    你的字段是什么类型?INT还是CHAR ?问题说明越详细,回答也会越准确!参见如何提问。(提问的智慧
        
      

  3.   

    update test set a = right(a, length(a)-1);
      

  4.   

    update tb set col=substring(col,2);
      

  5.   

    如果字段是INT,则update tb set col=mod(col,10)
    如果字段是字符串类型,则update tb set col=substring(col,2);