0
需要在修復錯誤的幫助,試圖運行一個查詢,並正在錯誤的每個派生的表必須有自己的別名,下面是代碼:在SQL收到錯誤:每個派生的表必須有它自己的別名
$sql="SELECT trouble_type_priority, category_1, category_2, status, COUNT(*) FROM
(SELECT DISTINCT trouble_type_priority, category_1, category_2 FROM tbl_main)
GROUP BY trouble_type_priority,category_1,category_2 HAVING COUNT(*) > 1";
什麼不清楚的錯誤消息? – 2013-05-04 12:43:46