Oracle并发查询

1. 第一张表加并发

select /*+ PARALLEL(t1, 5) */count(*) 
from table1 t1, table2 t2 
where t1.pk = t2.pk 

2. 两张表都加并发

select /*+ PARALLEL(t1, 5)  PARALLEL(t2, 5) */count(*) 
from table1 t1, table2 t2 
where t1.pk = t2.pk 

Leave a Reply

Your email address will not be published. Required fields are marked *

*