Home  >  Q&A  >  body text

mysql - 数据库:获取两个字段与获取*,传输的数据量差距大吗?

大家讲道理大家讲道理2743 days ago715

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:01:05

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 15:01:05

    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.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:01:05

    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.

    reply
    0
  • Cancelreply