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

Thread: plsql table

  1. #1
    Join Date
    Jun 2001
    Posts
    193
    how to define PL/SQL tables?

    one book i read says that we can take advantage of
    cacheing with pl/sql tables to increase performance.

    one example is:

    cursor product_csr(cp_product_id number)
    is
    select normal_value from products where
    product_id=cp_product_id;

    l_product_normal_value products.normal_value%type;

    begin
    l_product_normal_value:=
    product_val_table(p_product_id);
    exception
    when no_data_found then
    open product_csr(p_product_id);
    fetch product_csr into l_product_normal_value;
    close product_csr;
    product_val_table(p_product_id):=
    l_product_normal_value;
    end;

    but it didn't give me the definition of product_val_table.
    can somebody tell me by some example?
    guru is on the way!!!!

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Substitute the product table with your own table and make use of that schema structure.

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    Jun 2001
    Posts
    193
    can u give me an example?
    guru is on the way!!!!

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