English

Differentiate between drop and delete query in SQL with a suitable example. - Computer Science (Python)

Advertisements
Advertisements

Question

Differentiate between drop and delete query in SQL with a suitable example.

Distinguish Between
Advertisements

Solution

  • The DELETE query removes all the records or specific records from a table, preserving the table structure.
    Example: DELETE FROM Employees WHERE EmployeeID = 5;
  • The DROP query removes the entire table or database along with its data.
    Example: DROP TABLE Employees;
shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×