Welcome Guest, Not a member yet? Register   Sign In
Select Count(*) problem
#5

[eluser]Chillahan[/eluser]
The problem in getting count with the main query is there's no way to access the count separately, without peeling off one row of the returned object collection, right? (like if one needs a count for pagination) So I still do a separate count query (although it's just COUNT(id), so it should be quicker than selecting * and actually returning data).

Any thoughts on whether I can improve this?


Messages In This Thread
Select Count(*) problem - by El Forum - 04-24-2011, 06:02 AM
Select Count(*) problem - by El Forum - 04-24-2011, 09:20 AM
Select Count(*) problem - by El Forum - 04-25-2011, 08:04 PM
Select Count(*) problem - by El Forum - 04-26-2011, 03:16 AM
Select Count(*) problem - by El Forum - 06-15-2011, 07:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB