SQL去掉一个字段的空格

ltrim(name),rtrim(name)

可以去左空格和右空格

replace(name,'','')

update stuInfo set Sname=rtrim(Sname)

你可能感兴趣的:(SQL去掉一个字段的空格)