Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

SQL stored procedure can't use CONTINUE?

$
0
0
Hi, I used the following in my stored procedure

Code:

fetch_loop_daref:
    LOOP

                CONTINUE;
       
    END LOOP fetch_loop_daref;   
CLOSE v_getdaref_cur;

and when I compile it, I got
SQL0104N An unexpected token "CONTINUE" was found following "daref: LOOP
". Expected tokens may include: "COMMIT". LINE NUMBER=501. SQLSTATE=42601

I remove

Code:

CONTINUE;
it compiled ok.

my db2 version is 9.7, what am I missing here? Thank you.

Viewing all articles
Browse latest Browse all 13329

Trending Articles