I\'ve got a field in a mysql db that\'s a varchar(255). I\'ve looked at trim() to remove leading and trailing whitespace, but it seems to only handle spaces, not tab charac
You can use replace with either \t or CHAR(9):
UPDATE mytable SET email = REPLACE(TRIM(email), '\t', '');
You can still use the TRIM function, and specify the character to be trimmed:
UPDATE mytable SET email = TRIM(CHAR(9) FROM TRIM(email));
The TRIM function provides a good solution for your problem. Just use some like this above:
UPDATE yourtable SET your_field = TRIM(CHAR(9) FROM TRIM(your_field));
Have you tried this?
UPDATE mytable SET email = REPLACE(TRIM(email), CHAR(9), '')