hi
i read this in the manual:
If you want to change the order of columns anyway, you can do it as follows:
Create a new table with the columns in the right order.
Execute INSERT INTO new_table SELECT fields-in-new_table-order FROM old_table.
Drop or rename old_table.
ALTER TABLE new_table RENAME old_table.
And also read this:
ALTER [IGNORE] TABLE tbl_name alter_specification [, alter_specification ...]
alter_specification:
ADD [COLUMN] create_definition [FIRST | AFTER column_name ]
but somehow i cant get it working with 2nd option, while first is very laborious.
Can anyone come with a clearer idea?
thanks
i read this in the manual:
If you want to change the order of columns anyway, you can do it as follows:
Create a new table with the columns in the right order.
Execute INSERT INTO new_table SELECT fields-in-new_table-order FROM old_table.
Drop or rename old_table.
ALTER TABLE new_table RENAME old_table.
And also read this:
ALTER [IGNORE] TABLE tbl_name alter_specification [, alter_specification ...]
alter_specification:
ADD [COLUMN] create_definition [FIRST | AFTER column_name ]
but somehow i cant get it working with 2nd option, while first is very laborious.
Can anyone come with a clearer idea?
thanks