Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc

后端 未结 30 3050
清歌不尽
清歌不尽 2020-11-21 23:59

I\'ve heard that SELECT * is generally bad practice to use when writing SQL commands because it is more efficient to SELECT columns you specificall

30条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 00:37

    Absolutely define the columns you want to SELECT every time. There is no reason not to and the performance improvement is well worth it.

    They should never have given the option to "SELECT *"

提交回复
热议问题