我有这个 ID 抓取脚本,它使用代理来抓取 id,但我在弄清楚如何编辑此脚本时遇到了一些麻烦,我已经得到了它,所以它只导出 id 的位置“rare = 1”但我该如何编辑它,这样它就不会导出“已售出= 1”的ID,这样它只导出尚未售出的ID。
$ids = $sql->select('*', '`ids` where rare = 1 (i dont want it to export values where sold = 1) ORDER BY `UserId` ASC', NULL, NULL, NULL, true, true);
最佳答案
只需添加 <>
已售(不等于)条款。
$ids = $sql->select('*', '`ids` where rare = 1 AND sold <> 1 ) ORDER BY `UserId` ASC', NULL, NULL, NULL, true, true);
关于php - SQL从某些列导出特定数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16811962/