Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Значение поля кот. было ;до обновления в триггере FOR UPDATE [MSSQL]


Shaman ©   (2002-12-03 17:21:00) 

Как получить доступ к subj. Другими словами нужен аналог интербейсовского old.


Владислав   (2002-12-03 17:58:00) [1]

Ну, короче говоря, в таблице deleted ищи :).


asmith   (2002-12-03 17:56:00) [2]

Выдержка из SQL Server BOL:
============================
Two special tables are used in trigger statements: the deleted table and the inserted table. Microsoft® SQL Server™ 2000 automatically creates and manages these tables. You can use these temporary, memory-resident tables to test the effects of certain data modifications and to set conditions for trigger actions; however, you cannot alter the data in the tables directly.
The inserted and deleted tables are used primarily in triggers to:
-Extend referential integrity between tables.
-Insert or update data in base tables underlying a view.
-Check for errors and take action based on the error.
-Find the difference between the state of a table before and after a data modification and take action(s) based on that difference.


Наверх

Титульная страница Поиск, карта сайта Написать письмо