In MySQL, the statement to delete a data table is: DROP TABLE table name. This statement will permanently delete the data table with the specified name and all data in it, so you should ensure that the data is no longer needed before using it.
The statement to delete the data table in MySQL
In MySQL, the statement to delete the data table is:DROP TABLE table name;
Detailed description:
Note:
statement, the data table and all data in it will be permanently deleted .
Example:
Delete the data table namedusers:
<code>DROP TABLE users;</code>
Tips:
statement does not use transactions. Therefore, once executed, deletion cannot be undone.
clause to prevent deletion of non-existent data tables. For example:
<code>DROP TABLE IF EXISTS users;</code>
The above is the detailed content of Statement to delete data table in mysql. For more information, please follow other related articles on the PHP Chinese website!