Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    2

    Unanswered: Temporary tables

    Hi ,
    I am new to DB2 . Can anyone please let me know how to create teamporary table with in a stored procedure and running a while loop on the temporary table.

    Thanks,
    Vijay

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    if you are new, the first thing todo is to find the doc
    Declaring global temporary tables
    and read some chapters..
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  4. #4
    Join Date
    Feb 2008
    Location
    Japan
    Posts
    3,483
    ... to create teamporary table with in a stored procedure and running a while loop on the temporary table.
    In my experience,
    many of temporary tables were unnecessary.
    (One of exceptional patterns may be sharing the temporary table(s) in multiple procedures.)

    I thought same things in your procedure, especially if the process in the while loop was not so complex.

  5. #5
    Join Date
    Aug 2011
    Posts
    2
    Thank you all.Its very useful

Posting Permissions

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