|
Создать триггер
|
|||
---|---|---|---|
#18+
Нужен триггер который будет проверять, если введенное слово есть в табл. то не добавляет его, если нету то добавляет в табл. Как написать правильно условие? Код: sql 1. 2. 3. 4.
... |
|||
:
Нравится:
Не нравится:
|
|||
16.05.2020, 15:58 |
|
Создать триггер
|
|||
---|---|---|---|
#18+
Код: sql 1.
... |
|||
:
Нравится:
Не нравится:
|
|||
16.05.2020, 19:55 |
|
Создать триггер
|
|||
---|---|---|---|
#18+
имхо в этом случае проще использовать СП для вставки В триггере вам надо использовать например DML triggers use the deleted and inserted logical (conceptual) tables. They're structurally similar to the table on which the trigger is defined, that is, the table on which the user action is tried. The deleted and inserted tables hold the old values or new values of the rows that may be changed by the user action. For example, to retrieve all values in the deleted table, use: ... |
|||
:
Нравится:
Не нравится:
|
|||
16.05.2020, 20:03 |
|
|
start [/forum/topic.php?fid=46&tid=1686116]: |
0ms |
get settings: |
12ms |
get forum list: |
16ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
32ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
48ms |
get tp. blocked users: |
2ms |
others: | 277ms |
total: | 414ms |
0 / 0 |