Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已使用此查询从数据库中检索数据:
SELECT * FROM news, necat WHERE news.ns_cat = necat.nc_id ORDER BY ns_id DESC LIMIT 0,4
当这个查询运行时只返回 3 行?!你能发现什么问题吗?
LIMIT 限制了可能结果的数量,但如果您的查询只返回 3 个结果,则无法扩展它:)