如何正确使用这个IN
OR
select语句? (其实一切除了where bdt.active='yes'
作品)如何在MySQL中使用关键字IN OR内联3个表?
SELECT bdt.*, specials.*, stars.*
FROM bdt INNER JOIN specials ON bdt.id = specials.id
INNER JOIN stars ON specials.id=stars.id
WHERE bdt.active='yes'
AND bdt.business_type IN ('entertainment')
OR bdt.business_subtype IN ('entertainment')
OR bdt.subtype2 IN ('entertainment')
OR specials.type IN ('entertainment')
schwiing!我从来不知道()谢谢你! – carm
实际上都没有工作。我应该透露我有一个子查询附加到此查询,停止工作时,我应用修复程序。非常感谢您的帮助,谢谢。 ('''')和特殊类型IN('娱乐')特殊选项。(bdt.id = specials.id WHERE bdt.active ='yes'和specials.date> = CURDATE()和specials.type IN('entertainment')和bdt.id =“。$ row_entertainment ['id']”。 GROUP BY specials.title ORDER BY specials.date,specials.price ASC LIMIT 7“; – carm