Drop Table

suggest change

DROP 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents