Home » MYSQL » Data Types » Question
  1. Which mode does not remove trailing spaces when CHAR values are retrieved?
    1. TO_FULL_LENGTH_CHAR_PAD
    2. PAD_CHAR_TO_FULL_LENGTH
    3. PAD_CHAR_TO_LENGTH
    4. CHAR_PAD_TO_FULL_LENGTH
    5. None of these
Correct Option: B

When the CHAR values are stored, they are right-padded with spaces to the specified length. When CHAR values are retrieved, trailing spaces are removed unless the SQL mode ‘PAD_CHAR_TO_FULL_LENGTH’ is enabled.



Your comments will be displayed only after manual approval.