mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
New function PQcmdTuples.
This commit is contained in:
1
HISTORY
1
HISTORY
@ -15,6 +15,7 @@ Allow strings to span lines, like ANSI(Thomas)
|
|||||||
Fix for backward ORDER BY(Vadim)
|
Fix for backward ORDER BY(Vadim)
|
||||||
Fix avg(cash) computation(Thomas)
|
Fix avg(cash) computation(Thomas)
|
||||||
Fix for specifying a column twice in ORDER BY(Vadim)
|
Fix for specifying a column twice in ORDER BY(Vadim)
|
||||||
|
Documented new libpq function to return affected rows, PQcmdTuples(Vadim)
|
||||||
|
|
||||||
|
|
||||||
PostgreSQL 6.2 Thu Oct 02 12:53:46 EDT 1997
|
PostgreSQL 6.2 Thu Oct 02 12:53:46 EDT 1997
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" XXX standard disclaimer belongs here....
|
||||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.6 1997/10/16 04:14:19 momjian Exp $
|
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.7 1997/10/17 02:11:49 momjian Exp $
|
||||||
.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
|
.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Libpq is the programmer's interface to Postgres. Libpq is a set of
|
Libpq is the programmer's interface to Postgres. Libpq is a set of
|
||||||
@ -201,13 +201,20 @@ be used to retrieve the tuples returned by the query.
|
|||||||
.IP
|
.IP
|
||||||
|
|
||||||
.B PQntuples
|
.B PQntuples
|
||||||
returns the number of tuples (instances) in the query result, or the
|
returns the number of tuples (instances) in the query result.
|
||||||
number of rows affected for queries that do not return any tuples.
|
|
||||||
|
|
||||||
.nf
|
.nf
|
||||||
int PQntuples(PGresult *res);
|
int PQntuples(PGresult *res);
|
||||||
.fi
|
.fi
|
||||||
|
|
||||||
|
.B PQcmdTuples
|
||||||
|
returns the number of tuples (instances) affected by INSERT, UPDATE, and
|
||||||
|
DELETE queries.
|
||||||
|
|
||||||
|
.nf
|
||||||
|
char *PQcmdTuples(PGresult *res);
|
||||||
|
.fi
|
||||||
|
|
||||||
.B PQnfields
|
.B PQnfields
|
||||||
returns the number of fields (attributes) in the query result.
|
returns the number of fields (attributes) in the query result.
|
||||||
.nf
|
.nf
|
||||||
|
Reference in New Issue
Block a user