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

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

    Specifying the column list is usually the best option because your application won't be affected if someone adds/inserts a column to the table.

提交回复
热议问题