select count(1) from mytable where condition
select count(1) from mytable where condition
select count(1) from mytable where condition
select count(1) from mytable where condition
select count(1) from mytable where condition
...
用DATAREADER去取,取一个就NEXTRESULT去取下一个对应条件的结果。