» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2006, 02:03 PM
phil phil is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
phil is on a distinguished road
Cool full text search in multiple tables

Hi frends

I have a database with 11 tables, each table stores somehow similar values, there's a field in each table called "name" which is full-text ...

I want to make a mysql_query that searches for a string in all the 11 tables and shows results in desc order by date (i have the date field)

what I'm thinking of is

Code:

mysql_query ("SELECT * from tbl1 WHERE match('name') against('$q') UNION SELECT * from tbl2 WHERE match('name') against('$q') UNION SELECT * from .........");

at peak time, mysql just craches, and errors start to appear on webpage (( too many connections )) ... So is there a better way to make the full-text search in the 11 tables ?

suggestions are welcomed
thanks -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-08-2006, 02:05 PM
herbew herbew is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
herbew is on a distinguished road
Default

You are doing OK, there is no better way because there are 11 tables

if you had made only one table, then it would be better. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Engine optimization- HTML TAGS ishan Premium Webmaster Articles 3 09-18-2008 09:28 AM
SEO -Spamming Methods ishan Premium Webmaster Articles 0 02-14-2007 02:30 PM
The future of Internet: Real-time Web Search and the Semantic Web waqar Premium Webmaster Articles 0 10-30-2006 07:41 AM
Oracle Unveils Oracle Secure Enterprise Search 10g outsourcingplans Web Hosting Industry 0 03-03-2006 05:42 PM
Navisso Search Launches Beta Test outsourcingplans Web Hosting News 0 01-04-2006 03:58 PM


All times are GMT. The time now is 08:24 PM.