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 VARIABLES
(a) SHOW CONSTANTS
(b) SHOW CONSTRAINTS
(c) SHOW VARIABLES
(d) DISP VARIABLES
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.