MySQL add columns, modify column names, column attributes, delete column statements

MySQL add columns, modify column names, column attributes, delete column statements

 

mysql modify table name, column name, column type, add table column, delete table column  

 

alter table test rename test1; -- modify the table name  

 

alter table test add column name varchar(10); --Add table column  

  www.2cto.com  

alter table test drop column name; -- delete table column  

 

alter table test modify address char(10) -- modify table column type  

||alter table test change address address  char(40)  

 

alter table test change column address address1 varchar(30)--modify table column name

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325300922&siteId=291194637