Home >Backend Development >PHP Tutorial >表关联获取7最新的7条数据变成了1条

表关联获取7最新的7条数据变成了1条

WBOY
WBOYOriginal
2016-06-23 13:49:46913browse

我在phpmyadmin中用这条语句可以调出7条结果,但是到了程序中就变成了1条

SELECT fcj.fang_time, fcj.area, fcj.taoshu FROM f_chengjiao AS fcj LEFT JOIN f_city AS fc USING (city_id) WHERE fcj.city_id=1 ORDER BY fcj.fang_time LIMIT 0, 7


回复讨论(解决方案)

你确认执行的是同样的语句?
你确认是同个数据库?
你确认是只有一条?

你确认执行的是同样的语句?
你确认是同个数据库?
你确认是只有一条?


我已经知道那里错了,分送你了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn