I want to get the number of selected rows as well as the selected data. At the present I have to use two sql statements:
one is
select * from XXX w
Once you already have the select * from XXX results, you can just find the array length in your program right?
select * from XXX