Re: JDBC in PostgreSql for Linux

Поиск
Список
Период
Сортировка
От Erik Price
Тема Re: JDBC in PostgreSql for Linux
Дата
Msg-id 3EF35C09.1050405@ptc.com
обсуждение исходный текст
Ответ на Re: JDBC in PostgreSql for Linux  ("Kallol Nandi" <kallol.nandi@indussoft.com>)
Список pgsql-general

Kallol Nandi wrote:
> Hi,
>
> This is the code that I am using for native JDBC Driver to connect to
> PostgreSql in Linux.
> BTW the version of Postgres is 7.2.2 and the jar file is jdbc7.1-1.2.jar.

[...]

>      String server ="10.100.102.31";
>      String port ="5432";
>      String database="notes";
>      String url="jdbc:postgresql@"+server+":"+port+":"+database;

I don't know a lot about JDBC but I am using this URL with success:

jdbc:postgresql://localhost:5432/DATABASE_NAME_HERE

although I am using Sun 1.4 SDK.



Erik


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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: splitting a table?
Следующее
От: dalgoda@ix.netcom.com (Mike Castle)
Дата:
Сообщение: Re: Sort memory not being released