开发者

PL/SQL : Efficient way to loop through a large table

开发者 https://www.devze.com 2023-04-12 19:19 出处:网络
I need to loop through a large table contains around 20k of rows. I tried using CURSOR and BULK COLLECT but it still takes very long time, around half to complete.

I need to loop through a large table contains around 20k of rows. I tried using CURSOR and BULK COLLECT but it still takes very long time, around half to complete.

Wha开发者_如何学JAVAt is an efficient way in PL/SQL to loop through the large data set.


normally looping through 20 k rows will be faster if you simply select them. The result can be manipulated while selecting, or you can manipulate the result in a temporary table or a table variable.

0

精彩评论

暂无评论...
验证码 换一张
取 消