.. highlightlang:: us .. _pq_ntuples: pq_ntuples ========== .. index:: pq_ntuples .. us.tag pq_ntuples NOTREADYENGLISH New550 postgres :ref:`pq_ntuples` returns the number of rows (tuples) in the query result. .. function:: nRows = pq_ntuples(res) .. us.return **Return Value** *nRows* is the number of rows. .. us.params **Parameters** .. uparam:: res *res* is the res pointer returned by :ref:`pq_exec`. .. us.example **Example** See :ref:`pq_exec` for an example. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.5.0 - New .. seealso:: :ref:`overview-postgresql`, :ref:`pq_nfields`, :ref:`pq_exec` :sub:`id-1238092`