这是我在phpMyAdmin上使用SQL创建的查询:
SELECT DISTINCT Client_Order.orderID, Client.Title, Client.First_Name, Set_Product.setName, Client_Order.orderDATE, count( * )
FROM Client_Order
INNER JOIN Set_Product ON Set_Product.setID = Set_Product.setID
INNER JOIN Client ON Client.clientID = Client.clientID
GROUP BY Client_Order.orderID
ORDER BY Client.First_Name ASC
having count(*) > 1
但是我收到一个错误说:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having count(*) > 1 LIMIT 0, 30' at line 7
如何显示我的查询,因为没有计数我只是得到多个副本。