Re: help:steps needed to get the content of table from the

From: "A(dot)Bhuvaneswaran" <bhuvan(at)symonds(dot)net>
To: "Smitha V(dot) Babu" <smitha(dot)v(at)sonata-software(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: help:steps needed to get the content of table from the
Date: 2003-06-18 12:41:41
Message-ID: Pine.LNX.4.44.0306181805480.1976-100000@Bhuvan.bksys.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> I created a database and added 3 tables to it named weather, cities and
> teamdatabase.
> I make the connection with database ...
> After that i tried to execute the command SELECT * FROM weather by giving as
> res = PQexec(conn,"SELECT * FROM weather");

Further you could use,
1) PQresultStatus(res)
2) PQntuples(res)
3) PQnfields(res)
4) PQgetvalue(res, n, n)

For details, please refer the below link:

http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=programmer-client.html

Refer Asynchronous Query Processing in the above link for even more
specific details.

regards,
bhuvaneswaran

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ron Johnson 2003-06-18 13:19:05 Re: sql question (hopefully)
Previous Message Mel Jamero 2003-06-18 12:38:17 sql question (hopefully)