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



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to