The function of the drop keyword in the sql statement is to delete the table from the database. The drop statement will delete the table structure, as well as dependent constraints, triggers and indexes. After deletion, the stored procedures and functions that depend on the table will remain, but will become invalid.
The function of the drop keyword in the sql statement is to delete the table from the database.
(Recommended learning: mysql tutorial)
Related introduction:
The drop statement will delete the table structure and the dependent constraints (constrain) , trigger and index.
Syntax:
drop table table_name;
Description:
1. After deletion, the stored procedures/functions that depend on the table will remain, but will become invalid.
2. Drop also belongs to the DDL language and has the fastest execution speed.
3. Delete content and definitions to free up space.
The above is the detailed content of What is the function of drop keyword in sql statement. For more information, please follow other related articles on the PHP Chinese website!