DROP TABLE [IF EXISTS] table_name[,table_name...]

Description: Drops the table (or tables) specified by table_name, deleting all data within it.

IF EXISTS can be specified to suppress an error message if a table with the name specified does not exist.

Description in: Day 6

See also: CREATE TABLE, DROP DATABASE

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.