怎么去除SQL数据表中某字段值右边的空格(有可能是中文空格)

如何去除SQL数据表中某字段值右边的空格(有可能是中文空格)
最好有详细代码.

------解决方案--------------------
update tablename set ziduan=rtrim(ziduan)
------解决方案--------------------
rtrim()都能去掉