Home  >  Article  >  Database  >  What is the function of drop keyword in sql statement

What is the function of drop keyword in sql statement

王林
王林Original
2020-07-14 15:14:4711753browse

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.

What is the function of drop keyword in sql statement

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn