Explanation: `DROP TABLE` deletes the table and all of its data permanently.
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
Explanation: `DROP TABLE` deletes the table and all of its data permanently.
Explanation: `CREATE INDEX` is the correct syntax to create an index in MySQL.
SELECT name FROM students WHERE name LIKE 'A%';
Explanation: `'A%'` matches strings that start with 'A'.
Explanation: `LIMIT` is used to specify the number of records to return.
Explanation: `ALTER TABLE ... CHANGE old_name new_name datatype;` is used to rename a column.
Explanation: `FOREIGN KEY` enforces referential integrity between two related tables.
Explanation: `INNER JOIN` returns rows when there is at least one match in both tables.
SELECT AVG(score) FROM results;
Explanation: `AVG()` returns the average of a numeric column.
Explanation: The `UNIQUE` constraint ensures all values in a column are distinct.
Explanation: `LIMIT 5` returns the first 5 rows from the result set.