Modify the data table field name

In a data table can only set a unique name for the field name. In the same piece of data in the table, two names identical field name can not appear.

Thus, the database system can distinguish between different fields in the data table by the field name.

In MySQL, ALTER TABLE statement can also modify the field names in the data table. The basic syntax is as follows:

ALTER TABLE table name CHANGE old name for the new field name field new data types;

Guess you like

Origin www.cnblogs.com/wen-/p/12200757.html