我正在做一個多表全文查詢。但我遇到了一些問題。 我需要做一個查詢像mysql多表全文查詢問題?
(SELECT
title,content,date,cat
FROM article1
WHERE
cat='Science fiction'
AND
MATCH (title,content)
AGAINST
('+Harry +Potter' IN BOOLEAN MODE))
UNION
(SELECT
title,content,date
FROM article3
WHERE MATCH (title,content)
AGAINST
('+Harry +Potter' IN BOOLEAN MODE))
Order By date DESC LIMIT 10
卻引起Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
如果我刪除cat='Science fiction' AND
它可以通過測試。
問題在哪裏?如果我想查詢我想要的內容:首先全文查詢需要滿足cat='Science fiction'
。非常感謝。
還沒有通過測試。 – cj333 2011-04-19 16:07:00