mysql unique-constraint

Posted by Cypher on Stack Overflow See other posts from Stack Overflow or by Cypher
Published on 2010-03-23T22:17:42Z Indexed on 2010/03/23 22:23 UTC
Read the original article Hit count: 480

Filed under:
|
|
|

I have two tables --> Variables (id, name) and Variable_Entries (id, var_id, value). I want each variable to have a unique set of entries. If I make the value entry unique then a different variable won't be able to have that same value which is not right. Is there some way to make the value column unique for identical var_id's?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about unique