mysql> select a.account_id,a.product_cd,a.cust_id,a.avail_balance from account a
 where exists(select 1 from product p where p.product_cd = a.product_cd and p.pr
oduct_type_cd = 'LOAN');
以上是原select语句