0
我的SQL查询MySQL查询爆炸有两个表的连接
SELECT
team.id,
team.atitle,
team.etitle,
team.cup_id,
team.logo,
team.modarb,
team.count_id,
team.link AS tlink,
country.atitle AS name,
country.etitle AS ename,
cup.id AS catid,
cup.link,
cup.description,
cup.name AS cupname
FROM cup LEFT JOIN team ON (cup.id IN (". implode(', ', 'team.cup_id') ."))
LEFT JOIN country ON (country.id = team.count_id)
where cup.id='5'
行team.cup_id这个样子5,4,3, 需要知道如何使用破灭在MySQL查询
我投票结束这个问题作为题外话,因为它没有显示任何研究或努力到可能的解决方案。 – Sebas
好吧,你正试图在那里爆一个字符串。你可能想阅读:http://ca2.php.net/implode – miken32
你正在混合PHP和MySQL。他们处于不同的执行级别,您不能像这样合并它们。 – chris85