In A Table I want to have two columns with primary keys(that avoid insert value if each of two columns are duplicate) but not two columns with one primary key together(this avoid insert value if both of column are duplicate)
For Example :
column1:a,b,c
column2:1,2,3
in this table i dont want to insert (column1:a and column2:4) or(column1:d and column2:3)
Use an index for the second column with UNIQUE property set.