Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to retrieve value of PK , when it is composed of more than one columns  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
is there any way that we can retrieve value of PK for a row in tables ?
for example i have a table which its PK is composed of two field and now i want to store PK value for later use ( later use : I should delete some rows that i previusly stored their PK values) in one numeric field .

i should say that all PK are numeric as their used fields are numeric.

thanks
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37382
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raminaa,
No special way - just create an object to represent the primary key and store that.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!