我已经正确加入了两个表如下
SELECT m.id as mid, c.id as cid FROM members m inner join companies c on m.id=c.id
然后我也想添加第三张桌子,但我无法让它工作。
SELECT m.id as mid, c.id as cid, u.id as uid FROM members m inner join companies c on m.id=c.id inner join users u on m.id=u.id
我在这里想念什么?