List:General Discussion« Previous MessageNext Message »
From:Werner Stuerenburg Date:August 3 2001 8:17am
Subject:Re: Searching in a mysql table
View as plain text  
joe schrieb am Freitag, 3. August 2001, 07:46:09:
>  Would it be inefficient to use the command "SELECT * FROM users_info WHERE
>  name LIKE "%phil%" and company like "%" and address like "%";"

What use have

> and company like "%" and address like "%"

Omit it and you will be just as fine. If you have an index an
name, that is. Otherwise mysql will have to read all records.

-- 
Herzlich
Werner Stuerenburg            

_________________________________________________
ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
http://pferdezeitung.de


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