How to combine results from multiple tables with different columns?

前端 未结 5 1898
北恋
北恋 2020-12-16 05:42

I have several tables with different numbers and types of columns, and a single column in common.

+--------+---------+------------+-------------+
| person |          


        
5条回答
  •  攒了一身酷
    2020-12-16 05:58

    SELECT *
    FROM   beards
           JOIN moustaches
             ON moustaches.person = beards.person
    WHERE  person = "bob"  
    

提交回复
热议问题