oracle 查询正在执行的sql

insert into TBL_SMCS_WITHHOLD_RECORD SELECT t1.AD_APPL_NO AS acct_id --贷款编号 , to_date(trim(t2.tl_create_date), 'yyyy-mm-dd hh24:mi:ss') AS start_withhold_date --发起代扣时间 , t2.tl_amt AS start_withhold_amt --发起代扣金额 , to_date(trim(t2.tl_update_date), 'yyyy-mm-dd hh24:mi:ss') AS withhold_date --实际代扣时 , t2.tl_pay_amt AS fact_withhold_amt --实际代扣金额 , substr(t2.tl_error_msg, 0, 255) AS result_detail --结果详情 , t2.tl_status as state --状态 , t2.tl_type as type --类型 FROM tbl_smcs_increment t1 INNER JOIN tbl_acm_txnlog t2 ON t1.ab_account_no = t2.tl_acctno where t2.tl_status = 'SUCCESS' union all SELECT t1.AD_APPL_NO AS acct_id --贷款编号 , to_date(t2.WL_REQ_DATE || t2.WL_REQ_TIME, 'yyyy-mm-dd hh24:mi:ss') AS start_withhold_date --发起代扣

你可能感兴趣的:(oracle)