Does the order of columns in a query matter?

后端 未结 3 913
花落未央
花落未央 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:32

    In practice, I suspect it might.

    With a decent query optimiser: it shouldn't.

    You can only tell for your cases by measuring. And the measurements will likely change as the distribution of data changes in the database.

    with regards

    Wazzy

提交回复
热议问题