Home > Database > Mysql Tutorial > How to re-edit a table in mysql

How to re-edit a table in mysql

藏色散人
Release: 2020-10-29 16:47:23
Original
2326 people have browsed it

Mysql method to re-edit a table: first enter the command describe to view the current data table structure information; then add new field information through the command "alter...add..."; finally use "alter change" Just use the command to modify the field information.

How to re-edit a table in mysql

Recommended: "mysql video tutorial"

First enter the command describe data table name to view the current data table Structural information

How to re-edit a table in mysql

If you want to add new field information, add it through the command alter...add...

How to re-edit a table in mysql

After adding the new field information, check the structure of the data table again. You can see that a new field with the field type date has been added

How to re-edit a table in mysql

If you want To modify the existing field information, use the command alter...change..., to modify it

How to re-edit a table in mysql

After the modification is completed, check the structure of the data table again, you can see The default value of score has been modified to 0

How to re-edit a table in mysql

Use the command insert into and insert information to check whether the information can be entered correctly

How to re-edit a table in mysql

View the contents of the data table through the command select, and you can find that the data is correctly entered into the data table

How to re-edit a table in mysql

The above is the detailed content of How to re-edit a 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