You are here: Re: [PHP] searching tables « PHP « IT news, forums, messages
Re: [PHP] searching tables

Posted by John Nichel on 05/23/05 17:11

Sebastian wrote:
> I'd like to know if it is possible to perform a search across multiple
> mysql tables within a single query.
>
> eg, i have two tables with different column names:
>
> news: title | newstext
>
> faqs: topic | faqstext
>
> currently i am just searching the news table with a query as such:
>
> SELECT *, MATCH (topic,newstext) AGAINST ('$queryword') AS score FROM news
>
> would i have to run a second query to display results from the 'faqs'
> table?

http://lists.mysql.com
http://dev.mysql.com/doc/mysql/en/index.html

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация