Jump to content

[SOLVED] Multiple 'AND' Conditions


Omzy

Recommended Posts

Hi

 

Can't see how that would work, as a field cannot have multiple values on the same row.

 

However assuming you mean OR instead of AND (and also that category us a numeric field).

 

SELECT * FROM customers WHERE category IN (cat1,cat2,cat3,cat4,cat5)

 

All the best

 

Keith

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.