MySQL supports different character sets. Which command is used to display all…
2019
MySQL supports different character sets. Which command is used to display all available character sets?
Answer: A. SHOW CHARACTER SET — ConceptDatabase systems expose metadata through administrative statements. In MySQL, SHOW statements inspect server-supported objects and settings. A compound…
- A.
SHOW CHARACTER SET - B.
SHOW - C.
CHARACTER SET - D.
None of the mentioned.
Attempted by 43 students.
Show answer & explanation
Correct answer: A
Concept
Database systems expose metadata through administrative statements. In MySQL, SHOW statements inspect server-supported objects and settings.
A compound SHOW statement narrows the request to a particular metadata category, such as character sets.
Application
The task asks for the list of character sets known to the MySQL server, so the required metadata category is
CHARACTER SET.Combining the
SHOWstatement with that category givesSHOW CHARACTER SET.SHOWalone does not specify a metadata category, whileCHARACTER SETalone is not the requiredSHOWstatement.
Contrast
SHOW CHARACTER SETis the complete statement for listing the server-supported character sets.SHOWis only the administrative statement family without the requested category.CHARACTER SETis the category phrase without theSHOWstatement.None of the mentioned does not apply because a complete command is present among the choices.
Cross-check
MySQL documentation gives the syntax SHOW CHARACTER SET [LIKE pattern | WHERE expression], confirming SHOW CHARACTER SET as the base statement.
Therefore, the command is SHOW CHARACTER SET.