mysql 修改表的字段

如何在MySQL中修改表中的字段设置mysql中修改字段

mysql添加修改表和字段注释

参见表注: CREATE TABLE SHOW table_name; Table creation returns SQL, and comments - in trailing quotes. Example: show table create user;
添加表格注释: CREATE TABLE table_name comment '表兰用'; Example: CREATE TABLE PRODUCT COMMENT 'Product Information Table';
添加字段评论: '评论'; Example: CREATE TABLE USER(ID INT COMMENT 'userid');
修改表注释: ALTER TABLE table_name comment '新生'; Example: ALTER TABLE PRODUCT COMMENT 'PRODUCT DETAILS TABLE';
修改字段注释: ALTER TABLE table_name column_name MODIFY DATATYPE COMMENT 'NEW COMMENT'; Example: ALTER TABLE MODIFY USER ID, COMMENT 'UNIQUE IDENTITY OF USER';
图形界面: Right-click the table in Navicat and select "Design", check the comments on the DDL tab and save the changes.
自己掂量一下。