表在所有國家都存在唯一的員工類型1 Employee Name,Employee type, Country Present
Jim Mith , Consulting,England
Jim Mith, Manfacturing, Scotland
Jim Mith, Consulting, Northern Ireland
Mavis Mith, Consulting, France
假設我有三個表格,一個用戶表格,一個包含約500個不同項目的表格和相應的連接表格。我想這樣做的是: select * from users u join items_users iu on iu.user_id = u.id
where iu.item_id in (1,2,3,4,5)
and u.city_id = 1 limit 10;
除,而不是IN條件下,我想找到有所有相應項目的