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

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

    Naming each column you expect to get in your application also ensures your application won't break if someone alters the table, as long as your columns are still present (in any order).

提交回复
热议问题