码迷,mamicode.com
首页 > 数据库 > 详细

取客户的银行帐号SQL

时间:2014-06-07 00:38:48      阅读:291      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   code   java   

bubuko.com,布布扣
SELECT ibybanks.bank_name,                 --银行
       ibybanks.bank_branch_name,          --分行
       ibybanks.bank_account_num_electronic--银行帐号
  FROM iby_external_payers_all iepa,
       iby_pmt_instr_uses_all  ipiua,
       iby_ext_bank_accounts_v ibybanks
  WHERE iepa.payment_function    = CUSTOMER_PAYMENT
    AND iepa.cust_account_id     =123456789--客户帐号ID
    AND ibybanks.bank_account_id = ipiua.instrument_id  
    AND ipiua.instrument_type    = BANKACCOUNT
    AND ipiua.ext_pmt_party_id   = iepa.EXT_PAYER_ID
    AND ipiua.payment_function   = CUSTOMER_PAYMENT
    AND sysdate BETWEEN ibybanks.start_date AND nvl(ibybanks.end_date,sysdate+1)
bubuko.com,布布扣

 

取客户的银行帐号SQL,布布扣,bubuko.com

取客户的银行帐号SQL

标签:c   style   class   blog   code   java   

原文地址:http://www.cnblogs.com/toowang/p/3765383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!