MySQL Forums
Forum List  »  MySQL Workbench

Re: db design question/unique row values
Posted by: Scott Noyes
Date: July 16, 2008 08:48AM

Hi Jason,

Either UNIQUE or PRIMARY will enforce the uniqueness of the column. But you'll still need some method to check if inserting the record fails because of a duplicate key, and take appropriate action.

You could always use UUID() or similar functions to make unique file names.

Options: ReplyQuote

Written By
Re: db design question/unique row values
July 16, 2008 08:48AM

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.