How do you do many to many table outer joins?

后端 未结 5 1469
陌清茗
陌清茗 2020-12-29 08:56

I have 3 tables, foo, foo2bar, and bar. foo2bar is a many to many map between foo and bar. Here are the contents.

select * from foo
+------+
| fid  |
+----         


        
5条回答
  •  心在旅途
    2020-12-29 09:02

    FWIW, the question isn't really about a many-to-many: this could quite simply be done as a union.

    A real many-to-many in SQL is a CROSS JOIN

提交回复
热议问题