Re: enquiring - Mailing list pgsql-jdbc

From Hoanui Morangie
Subject Re: enquiring
Date
Msg-id 20020514140347.AC8ADBF77@xmxpita.excite.com
Whole thread Raw
In response to enquiring  ("ganaraj k" <kganaraj@rediffmail.com>)
List pgsql-jdbc
Yes, use DatabaseMetaData. You can obtain it from Connection object:

Connection con;
...
DatabaseMetaData mtd = con.getMetaData();


And then use methods like getPrimaryKeys(...), getCrossReeference(...), getExportedKeys(...), getImportedkeys(...) etc. See Java API.

Hoanui



--- On Tue 05/14, ganaraj k wrote:
> is there any JDBC-API for finding the primary key & foreign key of
> a table ?
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
>


Join Excite! - http://www.excite.com
The most personalized portal on the Web!

pgsql-jdbc by date:

Previous
From: "Marin Dimitrov"
Date:
Subject: Re: select * from mytable where myfield=null;
Next
From: "Jorg Janke"
Date:
Subject: Re: select * from mytable where myfield=null;