How to get number of tuples if after DECLARE CURSOR, I use FETCH NEXT (notFETCH ALL) ?PQntuples only work well if I use FETCH ALL.
Yusron