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

后端 未结 30 3049
清歌不尽
清歌不尽 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:48

    definitely defining the columns, because SQL Server will not have to do a lookup on the columns to pull them. If you define the columns, then SQL can skip that step.

提交回复
热议问题