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;
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;