不工作我有一个MySQL查询订购日期为预计在MySQL
select count(*) as TotalCount,
pd.Product_Modified_Date,
psc.Product_Subcategory_Name,
pd.Product_Image_URL
from product_subcategory psc
inner join product_details pd on psc.Product_Subcategory_ID = pd.Product_Subcategory_Reference_ID
where pd.Product_Status = 0 and
psc.Product_Subcategory_Status = 0
group by psc.Product_Subcategory_Name
order by pd.Product_Modified_Date desc
在我product_details表中有新的图像的URL。但我无法通过上述查询得到它。
我该怎么办?
看起来像什么永远填充'Product_Modified_Date'填充它是错误的。这也似乎只是一个MySQL问题。是否有PHP/mysqli的问题? – chris85
你更喜欢什么输出?如果第一行代表172个具有相同名称的记录,那么您希望为该行显示哪个(可能不同)172日期和url? – showdev