Обсуждение: How to interact with the db using java

Поиск
Список
Период
Сортировка

How to interact with the db using java

От
Shravan
Дата:
Hi all,
   I am a very new user of postgreSQL. It was an easy task of setting up the server and database.But the problem I am having is to communicate with the db using a Java application program. Can anybody tell me how to connect to the db using JAVA.
 
Thanks in advance,
 
Shravan 

Re: How to interact with the db using java

От
Peter Eisentraut
Дата:
Shravan writes:

>    I am a very new user of postgreSQL. It was an easy task of setting up
> the server and database.But the problem I am having is to communicate
> with the db using a Java application program. Can anybody tell me how to
> connect to the db using JAVA.

http://jdbc.postgresql.org/

--
Peter Eisentraut   peter_e@gmx.net


Re: How to interact with the db using java

От
"Glenn Wiorek"
Дата:
First you must have java support  enabled (--with-java)  when you configure postgres for compiling.  This will enable java support build the correct JDBC drivers based on your Java SDK version.  Besides reading  http://jdbc.postgresql.org/  as Peter pointed out, you may want to also look at the PostgreSQL developer documentation for the JDBC Interface http://www.postgresql.org/docs/current/interactive/jdbc.html  or http://candle.pha.pa.us/main/writings/pgsql/sgml/jdbc.html  which gives connection and programming examples. 
----- Original Message -----
From: Shravan
Sent: Tuesday, November 25, 2003 1:18 AM
Subject: [ADMIN] How to interact with the db using java

Hi all,
   I am a very new user of postgreSQL. It was an easy task of setting up the server and database.But the problem I am having is to communicate with the db using a Java application program. Can anybody tell me how to connect to the db using JAVA.
 
Thanks in advance,
 
Shravan