sdowney1 Posted February 15, 2011 Share Posted February 15, 2011 http://dev.mysql.com/doc/refman/5.0/en/alter-table.html for example ALTER TABLE bookdata CHANGE locnumber locnumber varchar(100) AFTER ts I found you can do this. Looking into it people on other forums said you cant. But I found you can. so has this been implemented recently? Quote Link to comment https://forums.phpfreaks.com/topic/227753-reordering-columns-works/ Share on other sites More sharing options...
fenway Posted February 17, 2011 Share Posted February 17, 2011 In MySQL 3.22 or later, to add a column at a specific position within a table row, use FIRST or AFTER col_name. The default is to add the column last. From MySQL 4.0.1 on, you can also use FIRST and AFTER in CHANGE or MODIFY operations to reorder columns within a table. Quote Link to comment https://forums.phpfreaks.com/topic/227753-reordering-columns-works/#findComment-1175746 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.