有没有办法在 where-in 语句中检查表中是否存在特定元组?
就像是:
create table Test(A int, B int);
insert into Test values (3, 9);
insert into Test values (6, 7);
insert into Test values (7, 6);
insert into Test values (3, 4);
select A, B
from Test
where (B, A) in Test;
预期输出:
6|7
7|6