我有一个目前有效的查询,但我们添加了更多的可能性,一个客户做多个试驾。这个额外的测试驱动器在不同的表上。客户ID是testdriveform表上的自动递增编号。因此,我需要根据表2中表1中的客户id检查其他条目,并将它们与其他条目一起列出。
SELECT * FROM testdriveform Where SalesAgent not like '%Test%' and SalesAgent like '%$Sales%' and Date between '$sDate' and '$eDate' and Stock != '' order by Date, SalesAgent;我想我需要添加一个子选择。增加了一些东西
SELECT * FROM testdrives WHERE custID = testdriveform.id bluehost..again上的phpmyadmin已关闭。有没有人?
https://stackoverflow.com/questions/41368909
复制相似问题