Joining the result of two queries mysql

后端 未结 5 694
刺人心
刺人心 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条回答
  •  野性不改
    2021-01-20 16:59

    Begin with something like

    SELECT tablea.id,tablea.name,tablea.address,tableb.occupation
    

    and put something like this in the WHERE clause:

    WHERE tablea.id = tableb.id
    

    I don't think that you need a left join here.

提交回复
热议问题