October 2002
Intermediate to advanced
688 pages
14h 14m
English
Lab ObjectivesAfter this Lab, you will be able to: |
A CASE statement has two forms: CASE and searched CASE. A CASE statement allows you to specify a selector that determines which group of actions to take. A searched CASE statement does not have a selector; it has search conditions that are evaluated in order to determine which group of actions to take.
A CASE statement has the following structure:
CASE SELECTOR WHEN EXPRESSION 1 THEN STATEMENT 1; WHEN EXPRESSION 2 THEN STATEMENT 2; … WHEN EXPRESSION N THEN STATEMENT N; ELSE STATEMENT N+1; END CASE;
The reserved word CASE marks the beginning of the CASE statement. A selector is a value that determines ...
Read now
Unlock full access