有没有什么函数可以去掉一个表中某列下的所有数据的最后一个字符啊?

解决方案 »

  1.   

    update tb set col = left(col,len(col)-1)
      

  2.   


    --更新
    Update TableName Set ColName = Left(ColName, Len(ColName) - 1)
    --查詢
    Select Left(ColName, Len(ColName) - 1) As ColName From TableName
      

  3.   

    1
    update tb 
    set col = left(col,len(col)-1)
    2
    update tb 
    set col = substring(col,1,len(col)-1)
    3
    update tb 
    set col = stuff(col,len(col)-1,1,'')
      

  4.   

    用这个拉 最简单
    left(col,len(col)-1)