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

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

    It depends on the version of your DB server, but modern versions of SQL can cache the plan either way. I'd say go with whatever is most maintainable with your data access code.

提交回复
热议问题