select * from
(select * from credit.credit_repayment_0
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_1
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_2
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_3
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_4
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_5
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_6
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_7
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_8
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_9
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_10
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_11
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_12
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_13
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_14
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_15
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_16
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_17
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_18
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_19
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_20
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_21
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_22
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_23
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_24
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_25
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_26
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_27
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_28
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_29
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_30
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_31
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_32
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_33
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_34
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_35
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_36
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_37
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_38
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_39
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_40
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_41
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_42
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_43
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_44
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_45
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_46
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_47
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_48
where borrow_account_id =‘154201911650900104’
UNION
select * from credit.credit_repayment_49
where borrow_account_id =‘154201911650900104’) j where loan_id =282828676422545408 and term_num=1;
可以统一创建视图,查询方便