Does the order of columns in a query matter?

后端 未结 3 898
花落未央
花落未央 2021-02-20 04:09

When selecting columns from a MySQL table, is performance affected by the order that you select the columns as compared to their order in the table (not considering indexes that

3条回答
  •  春和景丽
    2021-02-20 04:36

    The order of the attributes selected is negligible. The underlying storage engines surely order their attribute locations, but you would not necessarily have a way to know the specific ordering (renames, alter tables, row vs. column stores) in most cases may be independent from the table description which is just meta data anyway. The order of presentation into the result set would be insignificant in terms of any measurable overhead.

提交回复
热议问题