Machine-translated by Google. Questions are authored in English.
Top

Discussion

SQL command used to remove a table from the database is

  • A.DELETE
  • B.DROP
  • C.TRUNCATE
  • D.REMOVE

Answer: B

The command is DROP.

DROP TABLE name removes the table entirely: its definition, all its rows, and its indexes and constraints. After it, the table no longer exists in the database.

DELETE removes rows (all of them, or those matching a WHERE clause) but leaves the table in place. TRUNCATE quickly removes all rows and also keeps the empty table structure. REMOVE is not an SQL command.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.