myDBR setting to right-trim CHAR data?

(2 posts) (2 voices)

Tags:

No tags yet.

  1. apao, Member

    Hello everyone,

    is there any option in myDBR to right-trim CHAR data?

    For instance, I have a report that I export in CSV and I see that a five-letter word stored in a CHAR(30) column is exported with 25 spaces on the right (this is just an example among many: I have lots of CHAR columns in my tables).

    Considering the specificity of the CHAR type, this is not an un-explainable behavior but would there be a way to set up myDBR so that it always trims useless right spaces, so that I don't have to do it in the SQL of each of my queries (if I could change the data type of these columns in my database, I would, but I can't).

  2. myDBR Team, Key Master

    myDBR respects the datatype and data inside it. You can cast the char to a varchar or trim the data in the query.

    --
    myDBR Team


Reply

You must log in to post.