This is probably a dumb question...
but,
I have a large table 10M rows. I want to do a typical sql count BUT i want to abort the count (and return me the count so far) if it exceeds a certain number
kind of...
select count(id)
from bigtable
where maxcount cannot exceed 200
any ideas ?
but,
I have a large table 10M rows. I want to do a typical sql count BUT i want to abort the count (and return me the count so far) if it exceeds a certain number
kind of...
select count(id)
from bigtable
where maxcount cannot exceed 200
any ideas ?
Comment