Norbert: MYSQl Abfrage, 2 Tabellen, insgesamt 4 Felder

Ich habe zwei Tabellen in meiner MYSQL Datenbank. Diese möchte ich durchsuchen lassen.
Einzeln ist das kein Problem.

SELECT text, titel FROM tabele1  WHERE MATCH (text, titel) AGAINST ('suchwort' IN BOOLEAN MODE) LIMIT 25

und

SELECT zeile, inhalt FROM tabele2 WHERE MATCH (zeile, inhalt) AGAINST ('suchwort' IN BOOLEAN MODE) LIMIT 25

Nun würde ich gerne das ganze zusammenfassen, so das eine Anfrage daraus entsteht.

Norbert

  1. So könnte es funktionieren (ohne Vorbehalt)

    SELECT text, titel FROM tabele1
    WHERE MATCH (text, titel) AGAINST ('suchwort' IN BOOLEAN MODE) LIMIT 25
    UNION
    SELECT zeile titel, inhalt text
    FROM tabele2 WHERE MATCH (zeile, inhalt) AGAINST ('suchwort' IN BOOLEAN MODE)