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

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.