select * from EB where exists (select * from BB where Code=EB.Code)
把select 外层表EB看成是循环的,把每一个值eb.code传到里面去测试,为真刚返回结果这一条