DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Plsql

  1. #1
    Join Date
    Jun 2001
    Posts
    316
    Hi,
    Now ive deleted all my previous threads and starting a new 1

    Here is the plsql code

    DECLARE
    a2 varchar2(20):='#'
    TYPE p_tab IS TABLE OF varchar2(200) index by binary_integer;
    lAnswer p_tab;
    i number:=0;
    BEGIN
    FOR x IN (SELECT distinct id FROM TEST_SAM group by id) LOOP
    lAnswer(i):='#';
    FOR y IN (SELECT name FROM TEST_SAM where id=x.id) LOOP
    if a2 ='#' then
    a2 := x.id||','||y.name;
    else
    a2 := a2||','||y.name;
    end if;
    end loop;
    :lAnswer(i):=a2;(ths problem xists on this line and if i remove the colon it works fine..but i need to use the bind it to use it in the browser)
    i:=i+1;
    a2:='#';
    END LOOP;
    END;


    thanx and sorry if ive offended any1

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Since this could more appropriate on the Development side, I'm taking the liberty to move it over there... Also please post what is the problem on the procedure....


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width