Home > Database > Mysql Tutorial > body text

How to delete a field in the table in mysql

王林
Release: 2020-10-14 16:08:06
Original
9711 people have browsed it

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

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!

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