If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Declared and Created Temp Tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-20-03, 09:34
SShetty SShetty is offline
Registered User
 
Join Date: Nov 2003
Location: India
Posts: 6
Question Declared and Created Temp Tables

Hi,
What is the difference between DECLAREd and CREATEd GLOBAL TEMPORARY TABLES? Also, how can I create temporary tables using CREATE statement (I am working on DB2v8.1/ Unix).
Thanks,
Shetty
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 08:52
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Shetty,
FIrst, a Declared temporary table is only available as long as the session is active or the table is not dropped explicitly. There really is no such thing as a created temporary table, at least physically, in DB2. Any table that is Created will be available until it is dropped. Now, you can "create" a table to be used as a temporary table for whatever purpose you deem necessary, just remember that it is your responsibility to clean up after yourself.

HTH

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On