Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2002, 12:55 PM
shleda's Avatar
shleda shleda is offline
Born Looser
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: /root
Posts: 272 shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level)shleda User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 23 h 14 m 11 sec
Reputation Power: 172
Send a message via MSN to shleda Send a message via Yahoo to shleda Send a message via Google Talk to shleda Send a message via Skype to shleda
Facebook
Question Searching

I am using the following query to search two tables on contain titles for text and second contains text. both have id as common column and I need result after searching both tilte and text.
Look at this query.
Code:
select * from topics LEFT JOIN topic_text ON topics.topic_id=topic_text.topic_id
where (topics.topic_title LIKE '%Re:%') OR (topic_text.text LIKE '%Re:%') 

I do get the right result but i know this is wrong way to query a database. Do some one know a btter way to search twotable for a single thing let me know.
__________________
Kumar Chetan Sharma
-----

_SelfProcclaimedGuru
Hire a LAMP guy.
To err is human. To blame your computer for your mistakes is even more human, it is downright natural.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Searching

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap