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

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

WBOY
Release: 2016-06-23 13:49:46
Original
912 people have browsed it

我在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
Copy after login


回复讨论(解决方案)

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

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


我已经知道那里错了,分送你了
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template