Home > Database > SQL > body text

What is the function of drop keyword in sql statement

王林
Release: 2020-07-14 15:14:47
Original
11757 people have browsed it

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;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!