List:General Discussion« Previous MessageNext Message »
From:joe Date:August 3 2001 5:46am
Subject:Re: Searching in a mysql table
View as plain text  

 I hope i'm asking in the right place, as i've asked around alot and
 haven't gotten an answer.


 Would it be inefficient to use the command "SELECT * FROM users_info WHERE
 name LIKE "%phil%" and company like "%" and address like "%";"

 Note the single % by itself.  Would this slow down the system
 considerably, or would it be roughly the same amount of cpu usage as if i
 had just left everything but the name LIKE phil out?

 Thanks guys, i'm kinda new at sql so i'm hoping you might be able to help
:)

 Joe


Thread
Re: Searching in a mysql tablejoe3 Aug
  • Re: Searching in a mysql tableWerner Stuerenburg3 Aug