select * from A
 where exist (select a from B where a=A.a);
查询两标中a字断相同的记录。