Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding an ORDER BY to a PL/SQL calling a stored procedure for selected rows

mtJul 5 2022

The code belong works perfectly - but - how can I adapt it to include a sort sequence? Meaning, if I have selected 5 rows, and they have columns for DISTRIB_NMBR and DISTRIB_DATE, I want the procedure to run the oldest distributions first (using either Distrib_nmbr or Distrib_date)
Thank you
mt in NY

DECLARE
  P_DISTRIBID NUMBER;
  P_APP_SESSION NUMBER;

BEGIN
for x in 1..apex_application.g_f40.count
loop  

SPDISTRIB_INVESTOR_INS(
     P_DISTRIBID   => apex_application.g_f40(x),
    P_APP_SESSION => :APP_SESSION
  );
--rollback; 

END LOOP;

END;
This post has been answered by fac586 on Jul 5 2022
Jump to Answer
Comments
Post Details
Added on Jul 5 2022
2 comments
241 views