select * from EB where exists (select * from BB where Code=EB.Code)
把select 外層表EB看成是迴圈的,把每一個值eb.code傳到裡面去測試,為真剛返回結果這一條