A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 35
  • Filed under category MySQL
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.