Current location - Loan Platform Complete Network - Big data management - oracle's where not in statement can't cope with the exclusion of oversized data volume, what to do
oracle's where not in statement can't cope with the exclusion of oversized data volume, what to do

where not in If the amount of data is too large, you can use not exists to write the statement.

If there is the following statement:

select?distinct?phone_number?from?zj_jituan_3g?where?phone_number?not?in?(select?phone_number?from?zj_34g_201512 );

Can be rewritten as:

select?distinct?a.phone_number?from?zj_jituan_3g?a?where?not?exists?

(select?1?from?zj_34g_201512?b?where?a. phone_number=b.phone_number);