mysql - 数据库:获取两个字段与获取*,传输的数据量差距大吗?
大家讲道理
大家讲道理 2017-04-17 14:59:05
0
3
717
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
大家讲道理

There is no doubt that the difference is very large, so the query follows what fields are required

Peter_Zhu

There will be differences, but not huge differences...
In principle, it is an on-demand query, that is, just SELECTthe fields that need to be queried, especially in the case of joint table query The performance difference can be significant.

巴扎黑

In principle, you can check whatever fields you need
But if I have N pages that need the same interface, but each interface requires different parameters
I don’t think anyone will go out of their way to do it. Let's write 3 different queries. . hehe. Different people have different opinions.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!