corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » MySQL LIKE


New Topic

New Poll
  <<  1    2  >> Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author MySQL LIKE
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
23rd Oct 07 at 09:44   View Garage View User's Profile U2U Member Reply With Quote

aye
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
23rd Oct 07 at 12:48   View Garage View User's Profile U2U Member Reply With Quote

Fulltext would help you here.

Firstly you wouldn't need to split the query. Then the results would be ordered by how many words were present so you would get the green arosas first, then other arosas and other green seats, then other green cars.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
23rd Oct 07 at 16:26   View Garage View User's Profile U2U Member Reply With Quote

swapping my ors for ands did the trick, but oddly seemed to make the query a little slower, the difference is millseconds so i can live with it, but will need to keep an eye on it

  <<  1    2  >>
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Linking .jsp pages to a MySQL database chris_lee100 Geek Day 7 1435
1st Feb 04 at 14:23
by Ian
 
forum hacking - SQL's Drew Geek Day 15 1720
9th Sep 04 at 23:50
by Ian
 
Server Help Jodi_the_g Geek Day 7 1458
19th Jan 06 at 15:18
by Jodi_the_g
 
My SQL-Nearly there! Tom J Geek Day 31 3189
25th Dec 06 at 23:32
by Ian
 

Corsa Sport » Message Board » Off Day » Geek Day » MySQL LIKE 28 database queries in 0.0133312 seconds