Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global temporary table error

Status
Not open for further replies.

bmcc

Technical User
May 31, 2002
10
US
I get the following error message when I create a funtion to test Global temporary table. DB2 version is 5.x
Many thanks for your help.

SQL0199 - Keyword TABLE not expected. Valid tokens: NOT DEFAULT.

Here is my program:

CREATE function testtemptable()
returns integer
LANGUAGE SQL
BEGIN
DECLARE GLOBAL TEMPORARY TABLE session.x (
a integer not null,
b char(20) not null );
insert into session.x values (14,'test');
return 5;
End;
 
Have you checked your version 5 manuals to check if GTT was supported in that version ...

Also, it was only in version 8 that sql udfs could modify data ... So, I guess, you are out of luck ..

Sorry

cheers
Sathyaram



For db2 resoruces visit More DB2 questions answered at &
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top