Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / December 2005

Tip: Looking for answers? Try searching our database.

Any examples of using DatabaseMetaData?

Thread view: 
moop™ - 19 Dec 2005 09:25 GMT
Hi,
I have a glimpse on koders.com for a while but it is difficult to get a
comprehensive understanding of using various methods of the class, for
instance, how can I obtain primary keys of a given table? How to find
related columns among different tables?
Robert Klemme - 19 Dec 2005 10:58 GMT
moopT wrote:
> Hi,
> I have a glimpse on koders.com for a while but it is difficult to get
> a comprehensive understanding of using various methods of the class,
> for instance, how can I obtain primary keys of a given table? How to
> find related columns among different tables?

The JavaDocs are quite comprehensible, see

http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html

And especially:

http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html#getPrimar
yKeys(java.lang.String,%20java.lang.String,%20java.lang.String
)

Kind regards

   robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.