judgehopkins
Technical User
On an imported database, I want to trim all the spaces in the table.
UPDATE tblMyTable
SET [fldMyField] = Trim([fldMyField])
WHERE [fldMyField] <> Trim([fldMyField])
Question: I know I can use the above SQL code to update one field at a time, but how do I build the update query where it does this to every field?
(All the fields are in one table.)
"The potentialities of a language are so vast that we must wonder sometimes at ourselves: how do we manage to know so much?" Anthony Burgess, A Mouthful of Air
UPDATE tblMyTable
SET [fldMyField] = Trim([fldMyField])
WHERE [fldMyField] <> Trim([fldMyField])
Question: I know I can use the above SQL code to update one field at a time, but how do I build the update query where it does this to every field?
(All the fields are in one table.)
"The potentialities of a language are so vast that we must wonder sometimes at ourselves: how do we manage to know so much?" Anthony Burgess, A Mouthful of Air