Blank spaces

  • Hello,

    Somebody can tell me how to make so that my database doesn't record blank spaces

    in the fields of type char,

    thank you

  • Setup a trigger to rtrim() the fields. But for CHAR, there will always be blanks.

  • CHAR defines the field as fixed length. If you do not fill the columns full length spaces are generated automatically. When retriving the data you may need to perform a rtrim to get a proper compare but I have seen this few and far between and depends mostly on the language the app is programmed in doing the compare.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply