23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

E<strong>SQL</strong> elements and statements in Backus Naur Form (BNF)<br />

• Correct operation of a WHENEVER statement with a GOTO host_language_label or a<br />

GO TO host_language_label is subject to the scoping rules of the C Language. The<br />

host_language_label must be within the scope of all <strong>SQL</strong> statements for which the<br />

action is active. The GO TO or GOTO action is active starting from the corresponding<br />

WHENEVER statement until another WHENEVER statement for the same exception, or until end<br />

of the file.<br />

Authorization<br />

None<br />

Related statements<br />

FETCH<br />

E<strong>SQL</strong> elements and statements in Backus Naur Form (BNF)<br />

BEGIN-END DECLARE SECTION<br />

Syntax<br />

begin declare section ::=<br />

EXEC <strong>SQL</strong> BEGIN DECLARE SECTION<br />

host_lang_type variable_name ;<br />

.<br />

.<br />

.<br />

END DECLARE SECTION ::=<br />

EXEC <strong>SQL</strong> END DECLARE SECTION<br />

Host Language Type<br />

Syntax<br />

host language type ::=<br />

{ char<br />

| short<br />

| long<br />

| float<br />

| double<br />

}<br />

CLOSE<br />

Syntax<br />

close ::=<br />

EXEC <strong>SQL</strong> CLOSE cursor_name ;<br />

343

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!