Jul 28, 2003 #1 d4n0 Programmer Joined Jun 26, 2003 Messages 9 Location GB Hi, I need to remove whitespace from all the values in a certain column in a table. I want to do something like: update myTable set colName = trim(colName) but that's not doing the trick. Any suggestions? Cheers, Dan.
Hi, I need to remove whitespace from all the values in a certain column in a table. I want to do something like: update myTable set colName = trim(colName) but that's not doing the trick. Any suggestions? Cheers, Dan.
Jul 28, 2003 #2 JayKusch MIS Joined Oct 30, 2001 Messages 3,199 Location US Define "whitespace" for us. Thanks J. Kusch Upvote 0 Downvote
Jul 28, 2003 #3 Jamfool IS-IT--Management Joined Apr 10, 2003 Messages 484 Location GB UPDATE table_name set column_name = REPLACE(column_name, ' ', '') replaces the first quoted with the 2nd quoted e.g a space with nothing Upvote 0 Downvote
UPDATE table_name set column_name = REPLACE(column_name, ' ', '') replaces the first quoted with the 2nd quoted e.g a space with nothing