0

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

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

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

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

4

0 回答 0