how could I connect a Postgres database in c language using odbc?

From: masculinu(at)hotmail(dot)com (Maus)
To: pgsql-general(at)postgresql(dot)org
Subject: how could I connect a Postgres database in c language using odbc?
Date: 2004-07-02 14:27:33
Message-ID: fe3e69ec.0407020627.2dfbc4b9@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

For connecting a DB (Oracle in this case) in JDBC I know the follow
java instructions:

Class.forName("oracle.jdbc.driver.OracleDriver");
String dbUrl = "jdbc:oracle:thin:@"+host+":"+port+":"+sid;
Connection m_connection = DriverManager.getConnection(dbUrl, user,
passwd);
Statement m_statement = m_connection.createStatement();

Now, I'd like to know the equivalent instructions in c language using
ODBC for connecting a Postgres database.

Please, could anyone help me and tell me which these instructions are?

Thanks and bye,
Maus

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-07-02 14:30:57 Re: Row-level security--is it possible?
Previous Message Mike Rylander 2004-07-02 14:20:12 Re: Enough RAM for entire Database.. cost aside, is this