View Single Post
Old 11-29-2010, 10:30 AM   #3 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Would the IN() function of MySQL be a better approach to the problem.

sql Code:
SELECT * FROM `table` WHERE `field` IN(1, 4, 27, 34, 55)
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote