用镜头记录,用心灵体验 | 订阅本站 | 所有笔记 | 亲和力设计 | 流量

DB2 学习笔记

博客话题:DB2,Linux,Web,业余无线电,户外,摄影,截拳道,Thankpad,其他

DB2 开发

SQL0104N for creating global temporary table

Declare Temporary table cause must be followed a Begin and End, otherwise will raise a compile error.

[IBM][CLI Driver][DB2/6000] SQL0104N  在 "" 之后发现意外的标记 "<variable declaration>"。期望的标记可能包括:"<SQL statement>"。  LINE NUMBER=86.  SQLSTATE=42601 

DECLARE GLOBAL TEMPORARY TABLE SESSION.t (
      procr_code        char(8)
) 
WITH REPLACE 
NOT LOGGED 
IN GLBL_TEMP_01; 
BEGIN
-- code here
END;
More about temporary tables please refer to DB2 online document(v8). Here's also an article from IBM DeveloperWorks.

Alex's picture

my email address in picture

搜索|Search

评论|Recent Comments

按月归档|By Month

2009
07
2008
11
10
07
05
04
03
02
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

我读|My Books

我的链接|My Links

我的朋友|My Friends

Creative Commons License
This blog is licensed under a Creative Commons License.
Movable Type 4 Logo