用one to many吧很少有人用好many to many

解决方案 »

  1.   

    我也觉得many-to-many比较难以实用,一般情况下还是转成其他3种吧
      

  2.   

    select distinct customer
    FROM Customer AS customer LEFT OUTER JOIN customer.rivals rival
    where.............................
      

  3.   

    改正一下
    select distinct customer
    FROM Customer AS customer LEFT OUTER JOIN customer.rivals AS rival