A single batch of questions and reflect. . . So far not understand. . .

About 3109 data

A single mode:
the UPDATE A new_loan_balance
the SET = the CASE a.prdt_biz_ctgy
the WHEN a.prdt_biz_ctgy = "01" THEN "corporate loans"
the WHEN a.prdt_biz_ctgy = "02" THEN "private loans on"
the WHEN a.prdt_biz_ctgy = "41 is" THEN "Trade finance"
ELSE NULL
END;

Batch two ways:
Update new_loan_balance a.prdt_biz_ctgy SET A = 'lending to the public' WHERE a.prdt_biz_ctgy = '01';
Update new_loan_balance a.prdt_biz_ctgy SET A = 'lending to the private' WHERE a.prdt_biz_ctgy = '02';
Update new_loan_balance a set a.prdt_biz_ctgy = 'trade finance' where a.prdt_biz_ctgy = '41';

Why a way very slow (a few hours), Second way quickly (a few milliseconds)

Guess you like

Origin blog.51cto.com/daxionglaiba/2408703