
    Новые сообщения [новые:0]
  
  Дайджест 
  
  Горячие темы
    Избранное [новые:0]
  
Форумы 
 
Пользователи 
Статистика 
Статистика нагрузки 
    Мод. лог 
  
  Поиск 
| 
 | 
| 23.05.2002, 10:33 | |||
|---|---|---|---|
| 
 | |||
| Как отличить в триггере insert это или update | |||
| #18+ Hi all. На добавление и редактирование записи в табличке у меня делаются практически одни и те же операции. Но что-то надо делать только на добавление, напр. ID взять из sequenca. Как отличить внутри триггера, что за операция? ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 23.05.2002, 10:57 | |||
|---|---|---|---|
| 
 | |||
| Как отличить в триггере insert это или update | |||
| #18+ Сам себе отвечаю: Within the code of the trigger body, you can include the following conditions: IF INSERTING THEN . . . END IF; IF UPDATING THEN . . . END IF; The first condition evaluates to TRUE only if the statement that fired the trigger is an INSERT statement; the second condition evaluates to TRUE only if the statement that fired the trigger is an UPDATE statement. ... | |||
| : 
 Нравится:
     Не нравится:
     | |||
|  | 
| 
 | 

| start [/forum/search_topic.php?author=%D0%9D%D0%B5%D1%81%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D0%B8%D1%81%D1%82&author_mode=last_posts&do_search=1]: | 0ms | 
| get settings: | 10ms | 
| get forum list: | 13ms | 
| get settings: | 9ms | 
| get forum list: | 12ms | 
| check forum access: | 4ms | 
| check topic access: | 4ms | 
| track hit: | 41ms | 
| get topic data: | 12ms | 
| get forum data: | 2ms | 
| get page messages: | 35ms | 
| get tp. blocked users: | 1ms | 
| others: | 488ms | 
| total: | 631ms | 

 
    | 0 / 0 | 
