remove space in sql field code example
Example 1: sql trim all spaces
Select TRIM (' Word ')
Example 2: space not removing from column in sql
update thetable set thecolumn = rtrim(replace(thecolumn, char(160), char(32)))
Select TRIM (' Word ')
update thetable set thecolumn = rtrim(replace(thecolumn, char(160), char(32)))