答案 0 :(得分:2)
您需要先输入# Disable MultiViews
Options -MultiViews
# We must enable the rewrite engine before using mod_rewrite
RewriteEngine On
# Internally rewrite a request to "/product/<number>"
RewriteRule ^product/(\d+)$ /product.php?id=$1 [L]
item_id,然后再输入driver_id
和GROUP BY
函数计算每个组的记录数。
类似的事情应该起作用:
COUNT
答案 1 :(得分:1)
您似乎需要按item_id和driver_id进行分组:
group by driver_id, item_id