SharkBait Posted October 27, 2005 Share Posted October 27, 2005 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?? Link to comment https://forums.phpfreaks.com/topic/2747-mysql-select-query/ Share on other sites More sharing options...
ryanlwh Posted October 27, 2005 Share Posted October 27, 2005 [!--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--] Link to comment https://forums.phpfreaks.com/topic/2747-mysql-select-query/#findComment-9198 Share on other sites More sharing options...
SharkBait Posted October 27, 2005 Author Share Posted October 27, 2005 [!--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! Link to comment https://forums.phpfreaks.com/topic/2747-mysql-select-query/#findComment-9199 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.