MySQL Forums
Forum List  »  MySQL Workbench

db design question/unique row values
Posted by: Jason Wardenburg
Date: July 15, 2008 08:17PM

Hi,

i'm designing a database for storing photos, and I don't want to be able to store two photos with identical names.

do I use the unique index function for that? Or should I make the filename the primary key?
Or should I have the java application that connects to the database check and not allow the value to be entered if there's a dupe?
thanks,
bp

Options: ReplyQuote


Subject
Views
Written By
Posted
db design question/unique row values
3945
July 15, 2008 08:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.