|
|
|
ORACLE подготовка к тесту 1z0-007 вопрос
|
|||
|---|---|---|---|
|
#18+
Читаю Introduction_to_Oracle9i_SQL. Там пишут THE CASE Expression ... CASE expr WHEN comparison_expr1 THEN return_expr [ELSE else_expr] END ... .... an ELSE clause exists, then Oracle returns else_expr. Otherwise? Oracle Server returns null. You cannot specify the literal NULL for all the return_exprs AND the else_expr. Последнюю фразу трактую как: Вы не можете использовать NULL в return_exprs и в else_expr выражениях. Но конструкция вида нормально отрабатывает Код: plaintext 1. 2. 3. 4. 5. Я не правильно перевожу или что? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.09.2009, 17:14:49 |
|
||
|
ORACLE подготовка к тесту 1z0-007 вопрос
|
|||
|---|---|---|---|
|
#18+
JUNIORik, You cannot specify the literal NULL for all the return_exprs AND the else_expr. Вы не можете указать NULL для ВСЕХ return_expr и else_expr Как бы и смысла в таком выражении не много ;) В твоем примере не для всех выражений указан NULL, поэтому и прокатывает. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.09.2009, 08:44:27 |
|
||
|
|

start [/forum/topic.php?fid=34&tid=1550560]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
204ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 223ms |
| total: | 503ms |

| 0 / 0 |
