I'm working on JDBC-2 now, but I'm looking ahead to 3 and 4, which require updating and deleting records. I'm not sure how we're supposed to handle identifying the records to be deleted.
For example, while playing around I've created two different movies called "Hi" starring "Hello" that are DVD action movies described as "Good Evening". I know I need a way to distinguish between them for updating and deleting, but I don't have anything for this yet.
I'm not sure which of these options to follow:
a) Change the table schema to make an existing column or combination of columns unique.
b) Change the table schema to add a new id field that is hidden from the user.
c) Ignore this issue.
Any thoughts?
P.S. I'm posting on this old
thread because I can't create a new topic.