• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One-to-many association

 
subhashchandra medhiassam
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to create two tables,say A1 and B2, such that there is a one-to-many association from A to B. How should i proceed? I would like to use JDBC.

Kindly help.

Thanks,
Subhash
 
Campbell Ritchie
Sheriff
Pie
Posts: 50196
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You draw the tables in UML and put cardinality numbers on the lines joining them. Find an SQL tutorial and it should tell you how to do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic