mysql Add / Remove Columns (column)

1, added

Format: 
ALTER Table ranked table name column add column data type;
exemplary
ALTER
Table Test4 the Add column addr text ;

2, delete

Format:
 ALTER  Table table drop  column column name; 
Example: 
ALTER  Table Test4 drop  column addr;

 

Guess you like

Origin www.cnblogs.com/wt7018/p/11115710.html