1.

The mode that does not remove trailing spaces when CHAR values are retrieved is _____________(a) PAD_CHAR_TO_FULL_LENGTH(b) TO_FULL_LENGTH_CHAR_PAD(c) CHAR_PAD_TO_FULL_LENGTH(d) PAD_CHAR_TO_LENGTHI have been asked this question in homework.Origin of the question is Date and Time Data Types topic in division Data Type Reference, Operators and Functions of MySQL

Answer»

Correct answer is (a) PAD_CHAR_TO_FULL_LENGTH

The explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions