There are several control statements for logical flow and decision making in the body of the procedure or trigger, or in a batch. Available control statements include:
Control statement | Syntax | ||
---|---|---|---|
Compound statements See BEGIN statement. |
|
||
Conditional execution: IF See IF statement. |
|
||
Conditional execution: CASE See CASE statement. |
|
||
Repetition: WHILE, LOOP See LOOP statement. |
|
||
Repetition: FOR cursor loop See FOR statement. |
|
||
Break: LEAVE See LEAVE statement. |
|
||
CALL See CALL statement. |
|
Using compound statements
Declarations in compound statements
Atomic compound statements
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |