Joining the result of two queries mysql

后端 未结 5 643
刺人心
刺人心 2021-01-20 16:06

Without actually giving all the details of my query: Is there a way of joing the results of two separate queries on different tables? for example if i had a table

re

5条回答
  •  猫巷女王i
    2021-01-20 16:52

    I strongly suggest posting your SQL so a proper solution can be achieved. That is to say you should do this with MySQL instead of PHP.

    However, you will need to loop over your first set of records and build an array. Then loop over the second, appending it to the first set where the id matches.

提交回复
热议问题