简单的JOIN查询不起作用

时间:2012-06-18 14:42:58

标签: mysql join

我正在学习SQL,有人可以告诉我查询有什么问题吗?

SELECT * FROM customers AS C
Inner Join customers AS CC
on CC.City=C.City
INNER JOIN customers AS CCC
ON
CCC.City=C.City

我使用“虚拟数据库”和MYSQL进行查询测试。

1 个答案:

答案 0 :(得分:0)

尝试这样做:

SELECT C.* FROM customers C 
Inner Join customers CC 
on CC.City=C.City 
INNER JOIN 
customers CCC ON CCC.City=C.City