Re: MySQL general Question...

From: Date: Fri, 16 Jan 2004 14:56:20 +0000
Subject: Re: MySQL general Question...
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32446@lists.php.net to get a copy of this message
Tristan.Pretty@risk.sungard.com wrote:
What's teh diffence between 'LIKE' & '=' EG: SELECT & FROM my_table WHERE 'email' LIKE '123@hotmail.com'
= is an equality (case insensitive). LIKE allows you to use the % character as a wildcard (will match any amount of characters) and the _ character as a wildcard to match a single character. In your example, LIKE is being used ineffeciently.
(Have I been living in a box?)
Yes? ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#32446) next »