Syntax for the IF-THEN-ELSE Command Construct
This section provides the syntax for the IF-THEN-ELSE
construct.
For more details on using the IF-THEN-ELSE
command construct, see Using the IF-THEN-ELSE
Command Construct Within ttIsql in the Oracle TimesTen In-Memory Database Operations
Guide.
IF [NOT] { Literal1 | :BindVariable1 } { = | IN } { Literal2 | :BindVariable2 | SelectStatement } THEN "ThenCommands" [ ELSE "ElseCommands" ] ;
The ttIsql
IF-THEN-ELSE
command has the parameters:
Parameter | Description |
---|---|
|
The The |
|
Using |
|
A value that can be part of a comparison. |
|
A bind variable is equivalent to a parameter. You can use the |
= | |
You can use the |
|
A provided The |
|
All commands in the |
Restrictions for the IF-THEN-ELSE
construct are as follows:
-
You cannot compare variables of the LOB data type.
-
The values are compared case-sensitive with
strcmp
. A character padded value might not match aVARCHAR2
because of the padding.