【发布时间】:2016-11-24 14:36:36
【问题描述】:
我正在生成一个查询。我有两个表名:航班和目的地。
在航班表中,我有列:id、department、destination、price、airline、class 在我有列的目的地表中:id, destination, country, region.
现在我想获取区域为"Europe" 的航班详细信息。我在做inner join。我的查询是这样的:
SELECT *
FROM `flights`
INNER JOIN destinations ON flights.destination = destinations.destination
where region= 'europe'
它给了我空结果。如果我从查询中删除 (where region= 'europe'),那么它会给我所有航班和目的地列的结果。
请帮帮我
【问题讨论】:
-
大写/小写问题?
-
不,这不是问题
-
您确定这些行存在于数据库中吗?
标签: mysql