MySQL请求只返回1行

时间:2013-11-06 22:03:40

标签: php mysql database wordpress inner-join

我正在尝试从appointments获取所有字段,同时使用以下请求从zipcodes获取相应数据:

select appointments.*, zipcodes.*
from appointments
inner join zipcodes on appointments.service_zipcode = zipcodes.zip
where customer_id = {$_GET['id']}

问题在于有多个约会,我一次只能获得一次约会。连接似乎按预期工作,但就像我说的那样,我只得到1行,而不是预期的2行。

有人可以告诉我我做错了什么吗?

0 个答案:

没有答案
相关问题