日期:2014-05-19  浏览次数:20433 次

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

------解决方案--------------------

--更新
Update TableName Set ColName = Left(ColName, Len(ColName) - 1)
--查詢
Select Left(ColName, Len(ColName) - 1) As ColName From TableName
------解决方案--------------------
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, ' ')