Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Queries
#6

[eluser]joshvermaire[/eluser]
When I use the 'WHERE IN' statement it only returns one value even though there is more than one app_id.
I did this query and it works well:
Code:
SELECT  `app_name`
FROM (
`applications`
)
WHERE  `id` =  '2'
OR  `id` =  '3'

If there are a hundred different app_id values that I'm looking for, I'm guessing there's a more efficient way to process the query than a hundred OR statements. I'm assuming that's where you want somehting like a 'WHERE IN' statement, but unfortunately it wasn't working.

Thoughts?


Messages In This Thread
Multiple Database Queries - by El Forum - 02-14-2011, 04:07 AM
Multiple Database Queries - by El Forum - 02-14-2011, 12:21 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:03 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:26 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:38 PM
Multiple Database Queries - by El Forum - 02-14-2011, 03:09 PM
Multiple Database Queries - by El Forum - 02-14-2011, 03:15 PM
Multiple Database Queries - by El Forum - 02-14-2011, 05:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB