I want to do the following:
INSERT INTO table1 (term1, term2, number) values ('A','B',10);
however, if the values ββof A and B are already present table1 regardless of their order, i.e. predicate
(term1='A' && term2='B') OR (`term1='B' && term2='A')
is true, then I just want to update the column number. Is there any way to do this?
nafas source
share