I have table with 2 columns. ID1 and ID2. I want make 2 columns as primary key.
When insert ID1=22 , ID2=55
and ID1=55 , ID2=22
this as same and do not insert and show error!
Note*: This table is a relation ship. Same bro and sis. Really have 3 colmuns: ID1 , ID2 , TYP.
- ID1 = first user id
- ID2 = second user id
- TYP = type of relation ship(bro/sis/uncle/aunt...)
Now how can i set all columns as primary? When ID1 and ID2 as how i explain above and also make TYP primary too? Thanks@>