Mysql adds a column to modify the column name attribute and deletes the column bitsCN.com
First, I would like to recommend a book for beginners, a booklet: "mysql must know", which is practical and authoritative. it was a little expensive and I bought it yesterday.
Http: // ebook/201112/30389 .html
Body:
Mysql modifies the table name, column name, column type, adds a table column, and deletes a table column.
Modify the table name (testtable, newtablename)
Alter table testtable rename newtablename;
Add table columns:
Alter table testtable add column name varchar (40 );
Delete column:
Alter table testtable drop column name;
Modify the column type:
Alter table testtable modify address char (40)
Alternatively, alter table testtable change address char (40)
Alter table column name
Alter table testtable change column address address1 varchar (30)
Author naturebe
BitsCN.com