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.
What is an efficient way in PL/SQL to loop through the large data set.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.