Using WinMySQL Professional


Modify column





Only accessible when connected and when a table is active, the «Table management>Modify column» submenu allows a table alteration with a column structure modification. The user who wants to perform this operation must have, at least the «Can ALTER» privilege. WinMySQL Professional disables this menu when the active database is «mysql» to prevent any table alteration which may lead to an unrecoverable crash of the MySQL® server.



How to modify a column ?


To modify a column, invoke the «Table management>Modify column» submenu by clicking on it or by using the «Ctrl-F4» shortcut. Then, the column list of the current table appears. Select which you want to process and click on the «Select» button. After the column selection, the «column setup» window appears with the selected column properties edited. This window is very similar with the center part of the «Table structure» screen of the «File>New MySQL® table» submenu and it works quite in the same way, excepted the contextual menu which permits a quick access to columns types is disabled here.




Warning : if a modified column contained data before, MySQL® will try to do all it can to keep it, transtyping or truncating when possible, but when it can't, it will discard all the incompatible data.



Documentation : WinMySQL Professional 1.16 - © 1999-2003 by Alexandre GOUVERNEUR