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

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: help:steps needed to get the content of table from the
Дата
Msg-id Pine.LNX.4.44.0306181805480.1976-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на help:steps needed to get the content of table from the database.. .  ("Smitha V. Babu" <smitha.v@sonata-software.com>)
Ответы Re: help:steps needed to get the content of table from the
Список 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


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Mel Jamero"
Дата:
Сообщение: sql question (hopefully)
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: sql question (hopefully)