Arindam Haldar wrote:
hi,
i went thru the docs on programming interface of postgresql with c. But
am unable to understnad to use the interface to query a select
statement. the database is--->masterdb & in it there is a table
-->colleges with a few columns & a few records for testing..
now i want to use a general select statement--> select * from colleges,
but going thru the docs again & again from different sites am unable to
undestand how to use it.
can u gove me a basics to use the funstion to use the same & print the
rows in the tables
thanking in advance
A.H
pls--> i wanted to ask this 2nd Question-->is it necessary to start
postgreswith option -i too to accept connection from localhost(C
programme). command line works fine without the said option but unless i
use -i , i cannot connect to postgres.