As Sebastian Mendel wrote: you can use a union, you can mask the fact you are dealing with fields coming from three different tables renaming the fields of interest (the fields on which you make the search) with the same name. Something like this should works, it does with me:
SELECT "I'M A BOOK",ID_BOOK as ID_TO_RETURN FROM Books T1 WHERE TITLE like '%..whatever..%' UNION SELECT "I'M AN AUTHOR",ID_AUTHOR as ID_TO_RETURN FROM Authors T1 WHERE FIRST_NAME like '%..whatever..&' OR LAST_NAME like '%..whatever..&' UNION SELECT "I'M A NEWS",ID_NEWS as ID_TO_RETURN FROM News T1 WHERE TITLE like '%..whatever..&' OR CONTENT like '%..whatever..&' Aloha! Claudio Nanni -----Messaggio originale----- Da: nikos [mailto:[EMAIL PROTECTED] Inviato: mercoledì 9 gennaio 2008 14.21 A: mysql@lists.mysql.com Oggetto: full text search on multiple tables Hello list I have to make a full text search and I want to do it in many tables. I have deferent tables for books authors and news. Any ideas how to do it? Thank you Nikos "Questo messaggio ed ogni suo allegato sono confidenziali e possono essere riservati o, comunque, protetti dall'essere diffusi. Se il ricevente non é il destinatario diretto del presente messaggio, é pregato di contattare l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal sistema di posta. Se il ricevente non é il destinatario diretto del presente messaggio, sono vietati l'uso, la riproduzione e la stampa di questo messaggio e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi altro soggetto" ***** "This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please contact the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not use, copy or print this message or attachment or disclose the contents to any other person." -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]