SELECT CONCAT('My', 'SQL');
Explanation: `CONCAT()` joins two or more strings together.
Dear candidates you will find MCQ questions of MySQL here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
SELECT CONCAT('My', 'SQL');
Explanation: `CONCAT()` joins two or more strings together.
Explanation: `TRUNCATE` removes all records but keeps the table structure intact.
Explanation: `SHOW DATABASES;` lists all databases available on the server.
Explanation: `DESCRIBE table;` shows column definitions and other metadata.
Explanation: `UNION` combines results of two `SELECT` queries and removes duplicate rows.
Explanation: `NOW()` returns the current date and time in MySQL.
SELECT name FROM students WHERE age BETWEEN 18 AND 22;
Explanation: `BETWEEN` includes both boundary values: 18 and 22.
Explanation: `DISTINCT` eliminates duplicate values from the result.
Explanation: `AUTO_INCREMENT` is used for automatically incrementing a numeric column.
Explanation: `HAVING` is used to filter groups created by `GROUP BY`.