How to add a column header to the dynamic table?

If I have a large MySQL table and I want to add a column to it, is it more costly to add the column in a non-last position in column order (using the AFTER clause) vs. to just add it as the last column?

  • Answer:

    Shouldn't matter:  in either case the entire table will be rebuilt. However, it may be more "costly" if you need to rewrite application queries that assume a certain column ordering and your ALTER TABLE modifies that order.

Jay Janssen at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.