引子 现有个需求,查询出表A中的a列中的每一条数据是否在B表中的B列存在。 解决方案 select * from A where exists(select 1 from B where A.a = B.b)