From: | "Hoanui Morangie" <hoanui(at)excite(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: enquiring |
Date: | 2002-05-14 14:03:47 |
Message-ID: | 20020514140347.AC8ADBF77@xmxpita.excite.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)postgresql(dot)org)
>
------------------------------------------------
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
From | Date | Subject | |
---|---|---|---|
Next Message | Jorg Janke | 2002-05-14 14:04:12 | Re: select * from mytable where myfield=null; |
Previous Message | Marin Dimitrov | 2002-05-14 13:54:21 | Re: select * from mytable where myfield=null; |