I have a table:
table votes (
id,
user,
email,
address,
primary key(id),
);
Now I want to make the columns user
MySql 5 or higher behaves like this (I've just tested):
Example: PRODUCT_NAME, PRODUCT_VERSION 'glass', null 'glass', null 'wine', 1
Now if you try to insert ('wine' 1) again it will report a constraint violation Hope this helps