Jump to content

Archived

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

SharkBait

MySQL Select Query

Recommended Posts

How would I set up my query for this?

 

I need to find the instances where ID is = 15, 16, 82, 143 and 283

 

SELECT * FROM blah WHERE ID in? or??

Share this post


Link to post
Share on other sites

[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] * FROM blah WHERE ID IN (15, 16, 82, 143, 283) [!--sql2--][/div][!--sql3--]

Share this post


Link to post
Share on other sites
[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] * FROM blah WHERE ID IN (15, 16, 82, 143, 283) [!--sql2--][/div][!--sql3--]

311931[/snapback]

 

Oh that is simple, I thought it was something like that, guess when I tested it I was typing something in wrong.

 

Thanks!

 

 

Share this post


Link to post
Share on other sites

×

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.