DROP TABLE
command is used to remove a table from the current database, including all its rows, its metadata and related indexes.
table_name
The name of the table to be dropped.
RESTRICT
Return an error if any column in the table to be dropped is referenced by another table’s column (foreign key).
Note: This is the default behavior even without specifying RESTRICT
. The option is supported for for compatibility with PostgreSQL.
customers
.
DROP TABLE
command conforms to the SQL standard.