πŸ“Š MySQL
Q. What will this query do?
Code:
DELETE FROM employees WHERE id = 1;
  • (A) Deletes all employees
  • (B) Deletes employee with ID 1
  • (C) Throws an error
  • (D) Deletes last employee
πŸ’¬ Discuss
βœ… Correct Answer: (B) Deletes employee with ID 1

Explanation: This query deletes the record from `employees` where the ID is 1.

Explanation by: Mr. Dubey
This query deletes the record from `employees` where the ID is 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate