https://blog.csdn.net/jjc4261/article/details/126028602

image.png

  1. 增加查询分析器解析成本。
  2. 增加字段容易与 resultMap 配置不一致。
  3. 无用字段增加网络消耗,尤其是 text 类型的字段
  4. 增加磁盘 IO开销
  5. 增加内存开销

select * 的弊端

*为什么大家都说“SELECT ”效率低?

select id from table_a where id = xxx 和 select * from table_b where id = xxx ,这两个查询语句有什么区别

为什么不建议使用SELECT * ?