Compare a given value with multiple values field

From: Date: Sat, 16 Sep 2006 23:12:54 +0000
Subject: Compare a given value with multiple values field
Groups: php.db 
Request: Send a blank email to php-db+get-42360@lists.php.net to get a copy of this message
Using 'like' is your best bet. With multiple condition, you could restrict the return set further. Is there a way to restructure your table? I don't know what the data represents, but you could use a field per list item( you could then index it t get very fast results). You could also use 'like' to grab a larger then needed set, then use PHP to filter the data (also inefficient). -Mike

« previous php.db (#42360) next »