Skip to Main Content

SQL & PL/SQL

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!

Take the values from one plsql table, sort and store them into another plsql table

Raj MBApr 5 2015 — edited Apr 5 2015

Hello everyone,

  I would like to take the values from one plsql table, sort and store them into another plsql table, without using sql types.

How can i achieve this?

set serveroutput on;

DECLARE

      TYPE file_array_ty IS TABLE OF number index by binary_integer;

      file_array   file_array_ty;

      file_array2   file_array_ty;

    BEGIN

      file_array(1):=1;

      file_array(2):=0;

      file_array(3):=3;

      file_array(4):=2;

      /*

       your suggestion code

    

     */

     

     

      dbms_output.put_line(file_array2(1));

      dbms_output.put_line(file_array2(2));

      dbms_output.put_line(file_array2(3));

      dbms_output.put_line(file_array2(4));

   END;

output should be

0

1

2

3

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2015
Added on Apr 5 2015
5 comments
1,109 views