Command to delete SQL table
The command used to delete a table in SQL is DROP TABLE
.
Syntax
<code>DROP TABLE table_name;</code>
Among them, table_name
is the name of the table to be deleted.
Usage
To delete a table, use the following steps:
DROP TABLE
command, followed by the name of the table to be deleted. Example
The following command deletes the table named employees
:
<code>DROP TABLE employees;</code>
Note
The above is the detailed content of What is the command to delete a table in sql. For more information, please follow other related articles on the PHP Chinese website!