AW: fulltext suche 2 Tabellen 4 Felder
SELECT text, titel,'tabele1' AS von FROM tabele1 WHERE MATCH (text,titel) AGAINST ('suchwort' IN BOOLEAN MODE)
UNION
SELECT text, titel,'tabele2' AS von FROM tabele2 WHERE MATCH (text,titel) AGAINST ('suchwort' IN BOOLEAN MODE)
Jetzt hab ich es so gelöst, aber rundum zufrieden bin ich noch nicht. Ich hab zwar noch 'tabele1' AS von eingefügt, damit ich weis aus welcher Tabelle.
Jetzt müsste ich das Ergebis irgendwie noch nach Wertigkeit sortieren
Geändert von sansan (20.10.2014 um 19:05:42 Uhr)
|