Home >Database >Mysql Tutorial >How to delete a field in the table in mysql

How to delete a field in the table in mysql

王林
王林Original
2020-10-14 16:08:069760browse

Mysql method to delete a field in the table: You can delete a field in the table by executing the [alter table table name drop column field name;] statement.

How to delete a field in the table in mysql

Requirement:

Delete a specific field in the established table.

(Recommended tutorial: mysql video tutorial)

SQL command:

alter table 表名 drop column 字段名;

How to delete a field in the table in mysql

Related recommendations : mysql tutorial

The above is the detailed content of How to delete a field in the table in mysql. 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