What is the reason not to use select *?

后端 未结 20 3140
独厮守ぢ
独厮守ぢ 2020-11-21 07:14

I\'ve seen a number of people claim that you should specifically name each column you want in your select query.

Assuming I\'m going to use all of the columns anyway

20条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-21 07:59

    because "select * " will waste memory when you don't need all the fields.But for sql server, their performence are the same.

提交回复
热议问题