Is there any reason to worry about the column order in a table?

前端 未结 14 987
执念已碎
执念已碎 2020-11-28 17:49

I know you can ALTER the column order in MySQL with FIRST and AFTER, but why would you want to bother? Since good queries explicitly name columns when inserting data, is the

14条回答
  •  爱一瞬间的悲伤
    2020-11-28 18:17

    As is often the case, the biggest factor is the next guy who has to work on the system. I try to have the primary key columns first, the foreign key columns second, and then the rest of the columns in descending order of importance / significance to the system.

提交回复
热议问题