Let’s say I have tree tables:
[ news ]
id
title
text
date
[ posts ]
id
title
text
date
[ gallery ]
id
title
text
date
How can I perform a FULLTEXT search in these tree tables with one query?
I just want to run the search on the title and text fields and get the id, title, date and the table name with the results… Is this possible?
» Update – Most important: I need order the result by the FULLTEXT score DESC (possible mixing the different table results)
If there is a sensible relationship between the tables, join them on that relationship.
If these are really the same data with different identities, maybe they should be re-factored into a single table with a type field.