
All you ever need to remember about MySQL table manipulation in one easy place to find it!
mysql> ALTER TABLE tableName RENAME newName;mysql>ALTER TABLE tableName MODIFY columnName;mysql> ALTER TABLE tableName ADD columnName columnType;mysql> ALTER TABLE tableName DROP columnName;After a table edit it is good practice to optimise the table in order for it to run as efficiently as possible. The MySQL OPTIMIZE command orchestrates this but will not stop access to the table while running (It will suspend writing to the table until complete though).mysql>OPTIMIZE TABLE tableName;
mysql> DROP TABLE tableName;