我要问:
SELECT DISTINCT
countryName,countrySlug
FROM countries AS Country
INNER JOIN countries_networks AS n ON Country.id = n.country_id
AND n.network_id IN (1,14)
罚款。 然而,我现在需要加上一个必须的条款,这样,N.network_id MUST也就列入这一规定(6,7,8,9)。 (随着Im直接从调查桌上拖走,她们可以有多个网络——女。)
因此,我试图增加另一个国家:
SELECT DISTINCT
countryName,countrySlug
FROM countries AS Country
INNER JOIN countries_networks AS n ON Country.id = n.country_id
AND n.network_id IN (1,14)
AND n.network_id IN (6,7,8,9)
现在,这些结果根本没有结果。
这似乎像我这样大错了。 谁能看看什么?