There is a table. In it, the columns var1 var2 . You need to add records there. Is it possible to implement only SQL checks for the existence of such a record? Just by themselves, the values of var1 and var2 will be repeated, but they should not be together. For example:
1 | 2 1 | 3 2 | 2 2 | 3
When adding if such a combination is, then do nothing. Is it possible? Or without means of another language is not enough?