我真的很希望有人能幫我解決我的問題。我想通過group_concat實現與查詢的匹配。在條款中使用concat MATCH AGAINST - mysql
我需要的是這樣的:
Select c.id, p.place
from content c
join place p on p.object_id = c.id
where match(group_concat(p.place)) AGAINST('"string1" "string2" "string3"', IN BOOLEAN MODE)
and not match (group_concat(p.place)) AGAINST('string4', IN BOOLEAN MODE)
我試圖用也having子句,但不起作用。
在那一刻我不知道如何解決這個問題。有人可以幫我解決這個問題嗎? 非常感謝。
+1:表別名,連接..對於我通常在SO上看到的東西來說,這是一個令人欣慰的緩解 – 2010-08-13 16:28:43