I have a table:
table votes ( id, user, email, address, primary key(id), );
Now I want to make the columns user
I do it like this:
CREATE UNIQUE INDEX index_name ON TableName (Column1, Column2, Column3);
My convention for a unique index_name is TableName_Column1_Column2_Column3_uindex.
index_name
TableName_Column1_Column2_Column3_uindex