colname is the name of the column whose values you wish to remove leading and trailing spaces from and tablename is the name of the table in which the column resides.
Thanks Philip, I must have written it incorrectly but it works now... although no rows were affected, which is strange because I can see leading spaces in the majority of my rows in that column. I'm not sure how to get rid of them besides manually removing them.
Bookmarks