六个表联表查询遇到的问题,纠结中......求指点 mysqlJOIN 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SELECT *FROM (select * from a LEFT JOIN (b, c, f) ON (a.id = b.a_id and a.id = c.aa_id and a.f_id = f.id)) t1 LEFT JOIN (select * from b LEFT JOIN (d, e) ON (b.id = d.b_id and b.id = e.b_id) t2 ON t1.id = t2.a_id “a表的信息重复出现”, 既然你a对c是一对多的关系,join肯定有重复,如果不想要重复,可以group by, 不过你c表的数据准备如何显示?合并吗? 让PHP中Cookie及时生效 无需刷新 求一个采集程序 php滚动条函数! 学习PHP3个星期,顺便总结一下. 大家帮手看看, 我公司logo用龙, 给你的感觉是甚麽 求助php,smarty,tempnam() 问题? 求一个 sql 拼接的问题 ?? 介绍一个好的查找资料的网站,搜索功能比较好,支持空格等高级搜索功能。 求救:print "hello\n world" 不会换行 怎么生成唯一数字 php基础,结果为什么时这样的? float(-3.0531133177192E-16) 正则表达式匹配问题
*
FROM
(select * from a LEFT JOIN (b, c, f) ON (a.id = b.a_id and a.id = c.aa_id and a.f_id = f.id)) t1
LEFT JOIN
(select * from b LEFT JOIN (d, e) ON (b.id = d.b_id and b.id = e.b_id) t2
ON t1.id = t2.a_id
如果不想要重复,可以group by, 不过你c表的数据准备如何显示?合并吗?