1.

Which statement is used to show the server’s current character set and collation settings?(a) SHOW CONSTANTS(b) SHOW CONSTRAINTS(c) SHOW VARIABLES(d) DISP VARIABLESI got this question in a national level competition.This interesting question is from Character Set Support topic in portion Using SQL to Manage Data of MySQL

Answer» CORRECT option is (c) SHOW VARIABLES

Easy EXPLANATION: The statement ‘SHOW VARIABLES LIKE ‘character\_set\_%” displays a table consisting of two COLUMNS, ‘Variable_name’ and ‘VALUE’. Replacing characer\_set\_% with collation\_% shows the collation variables.


Discussion

No Comment Found

Related InterviewSolutions