Should I use one big SQL Select statement or several small ones?

后端 未结 7 624
一整个雨季
一整个雨季 2021-01-17 08:54

I\'m building a PHP page with data sent from MySQL.

Is it better to have

  • 1 SELECT query with 4 table joins, or
  • 4 small SELE
7条回答
  •  再見小時候
    2021-01-17 09:30

    Be careful when dealing with a merge table however. It has been my experience that although a single join can be good in most situations, when merge tables are involved you can run into strange situations.

提交回复
热议问题