Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Oracle [игнор отключен] [закрыт для гостей] / multitable insert простой вопрос / 3 сообщений из 3, страница 1 из 1
07.09.2016, 14:24:29
    #39305236
grok
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
multitable insert простой вопрос
если выполняются несколько условий одновременно
будут сделаны все соотв. вставки ?

у меня
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
  when attribute4 is not null then   
  .... 
  when attribute5 is not null then   
  ...
  when attribute6 is not null then   
  ...  
  when attribute7 is not null then  
  ...



и null/not null может быть что угодно и как угодно
...
Рейтинг: 0 / 0
07.09.2016, 14:31:47
    #39305245
SY
SY
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
multitable insert простой вопрос
grok,

А доку покурить?

ALL
If you specify ALL, the default value, then the database evaluates each WHEN clause regardless of the results of the evaluation of any other WHEN clause. For each WHEN clause whose condition evaluates to true, the database executes the corresponding INTO clause list.

FIRST
If you specify FIRST, then the database evaluates each WHEN clause in the order in which it appears in the statement. For the first WHEN clause that evaluates to true, the database executes the corresponding INTO clause and skips subsequent WHEN clauses for the given row.

SY.
...
Рейтинг: 0 / 0
07.09.2016, 15:42:43
    #39305296
grok
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
multitable insert простой вопрос
SYgrok,

А доку покурить?

ALL
If you specify ALL, the default value, then the database evaluates each WHEN clause regardless of the results of the evaluation of any other WHEN clause. For each WHEN clause whose condition evaluates to true, the database executes the corresponding INTO clause list.

FIRST
If you specify FIRST, then the database evaluates each WHEN clause in the order in which it appears in the statement. For the first WHEN clause that evaluates to true, the database executes the corresponding INTO clause and skips subsequent WHEN clauses for the given row.

SY.

понял, спасибо
...
Рейтинг: 0 / 0
Форумы / Oracle [игнор отключен] [закрыт для гостей] / multitable insert простой вопрос / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]