MySQL/PHP - 查询结果集? [英] MySQL/PHP - Query a result set?
本文介绍了MySQL/PHP - 查询结果集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个要过滤的结果集.
I have a result set that I want to filter.
问题是如何对结果集运行查询?
Question is how can I run a query on a result set?
使用 PHP 和 MySQL.
Using PHP and MySQL.
谢谢
推荐答案
您可以在原始 SQL 中添加更具体的 WHERE
子句,或者,如果不可行,您可以这样做:>
You can either add a more specific WHERE
clause in your original SQL, or, if that's infeasible you could do this:
SELECT `field1`, `field2`
FROM (
SELECT * FROM `myTable`
)
...在适当的位置添加您的搜索条件.
...adding in your search criteria in the appropriate places.
这篇关于MySQL/PHP - 查询结果集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文