Drop Table
suggest changeDROP TABLE deletes the table from the database.
Creating Table:
Create a table named tbl, then delete it.
CREATE TABLE tbl(
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(100) NOT NULL,
author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY (id)
);
Dropping Table:
DROP TABLE tbl;
PLEASE NOTE
DROP TABLE removes the table and its data. They cannot be recovered except from a backup. Triggers on the table are dropped too. A view that referenced the table is left in place and fails when used.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents