how can Iconnect a Postgres database using odbc in c language?

Поиск
Список
Период
Сортировка
От masculinu@hotmail.com (Maus)
Тема how can Iconnect a Postgres database using odbc in c language?
Дата
Msg-id fe3e69ec.0407020644.224f7726@posting.google.com
обсуждение исходный текст
Ответы Re: how can Iconnect a Postgres database using odbc in c language?  (Paul Thomas <paul@tmsl.demon.co.uk>)
Список pgsql-general
I know the following java instructions for connecting a DB (oracle in
this case):

import java.sql......

try {
     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();
    }
catch (ClassNotFoundException ex) {}

I'd like to know the equivalent instructions in C language using ODBC
for connecting a Postgres DB (with also includes library)

Please, is there anyone can tell me which these C language
instructions are?

Thanks and bye,
Maus

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

Предыдущее
От: Mike Rylander
Дата:
Сообщение: Re: Row-level security--is it possible?
Следующее
От:
Дата:
Сообщение: Re: Postgres doesn't use indexes for prefix matching?