答案 0 :(得分:1)
很容易:
SELECT m.*
FROM meals m JOIN cats c ON m.catId=c.catId
WHERE restId='theRestIdIWantToQuery'
答案 1 :(得分:0)
是可以加入所有三个表
select * from restaurant r
inner join cats c on r.id=c.restId
inner join meals m on c.id = m.catID
where r.id=YOURRESTID