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 > [DB2 V7] temporary table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-04, 11:07
geoffrey geoffrey is offline
Registered User
 
Join Date: Jun 2004
Posts: 39
[DB2 V7] temporary table

Hello,

Does anybody knows the SQL syntaxe to create a temporary table with DB2 v7 ( on aix 4.3.3) ?

I've tried different statement and no one seems to work :

a. db2 CREATE TEMPORARY TABLE TEMP_EMP1 ( no INTEGER)
--> gives me the following error :
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "TEMPORARY" was found following "CREATE ".
Expected tokens may include: "<space>". SQLSTATE=42601

b. db2 CREATE <directoryA> TEMPORARY TABLE TEMP_EMP1 ( no INTEGER)
(where directoryA is a empty dir located in the current dir)
--> creates a dir TEMPORARY in the current dir

I've tried with GLOBAL also but without success.

Thx in advance for your help.
__________________
geoffrey
- Four J's Development Tools -

Last edited by geoffrey; 06-29-04 at 11:18.
Reply With Quote
  #2 (permalink)  
Old 06-29-04, 12:38
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Look in the manual for "DECLARE GLOBAL TEMPORARY TABLE".

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