|
大家好啊! 有個問題想向大家請教, 我在製作互動討論區的時候,於dreamweaver8資料集(查詢)的進階模式中輸入SQL語法如下:
SELECT question_main .main_id, question_main .main_important, question_main .main_subject, question_main .main_name, question_main .num_hits, COUNT (question_re.main_id) AS num_re, MAX(IF(question_re.re_time ,question_re .re_time,question_main .main_time)) AS NewUpdate FROM question_main LEFT JOIN question_re ON question_main .main_id = question_re.main_id GROUP BY question_main .main_id, question_main .main_important, question_main .main_subject, question_main .main_name, question_main .num_hits ORDER BY NewUpdate DESC
結果居然出現了錯誤訊息:
MySQL Error#: 1305
FUNCTION myquestion.COUNT does not exist
不知道是那個環節錯了,煩請各位給予解答協助, 謝謝!
|