Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

get primar key and foreign keys from table

 
waleed atef abdel elazyz
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear all,
I have aproblem how to get primary key and foreign key from table

and relation between tables.

please explain code
thanks and best regards
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Waleed,
Pardon me if I am stating the obvious, but I believe the java.sql.DatabaseMetaData interface is what you need.

Good Luck,
Avi.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64186
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
waleed, please do not post the same question more than once.

bear
forum bartender
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic