Jump to content

[SOLVED] MySQL Query Questions


guitarist809

Recommended Posts

Hello,

 

Is there a way to do a query like this?

 

SELECT `field1`,`field2`,`field3` FROM `mytable` WHERE `field1` = 1 OR WHERE `field1` = 2 OR WHERE `field1` = 8

 

If you didn't get what I was trying to do I'm trying to select some rows where "field1" can either be 1, 2, or 8.

 

 

How can I do this?

 

 

Thanks,

 

-Matt

Link to comment
https://forums.phpfreaks.com/topic/43585-solved-mysql-query-questions/
Share on other sites

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.