MySQL Forums
Forum List  »  Newbie

Re: Outfile - stop padding of columns
Posted by: Phillip Ward
Date: April 05, 2019 04:46AM

Are your columns defined as char(40), by any chance?

If so, MySQL considers those trailing spaces to be significant and retains them and renders them whenever the data is queried.

If you don't care about trailing spaces (and very few things do, these days), redefine them as varchar(40) instead.

Regards, Phill W.

Options: ReplyQuote


Subject
Written By
Posted
Re: Outfile - stop padding of columns
April 05, 2019 04:46AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.