Académique Documents
Professionnel Documents
Culture Documents
INTEGRANTES:
Sintaxis
ON { table | view }
[ WITH APPEND ]
Creación:
Modificación:
Eliminación:
Ejemplos
UPDATE TbFormato
SET cantvideo=cantvideo+1
WHERE idformato=@idfor
Go
--Cuando se elimina un registro en la Tabla TbVideo se disminuye
en 1 en campo cantvideo de la tabla TbFormato
ON TbVideo
FOR Delete
AS
UPDATE TbFormato
SET cantvideo=cantvideo-1
WHERE
idformato=
@idfor Go
2. Resumen
Definición
Sintaxis
ON { table | view }
[ WITH APPEND ]
Ejemplos
Triggers or Triggers are objects that are associated with tables and
stored in the database. Its name is derived from the behavior they
present in its operation, since they are executed when an event
occurs on the tables to which it is associated. The events that cause
a trigger to execute are the operations of insertion (INSERT),
deletion (DELETE) or update (UPDATE), since they modify the data
of a table.
Syntax
ON { table | view }
[ WITH APPEND ]
Example
5. Conclusiones
7. Glosario de Términos
Eventos: Son todas las acciones que el usuario inicia, dar clic sobre
un botón, presionar las teclas del teclado, etc.
8. Linkografía
https://es.wikipedia.org/wiki/Trigger_(base_de_datos)
https://analisisyprogramacionoop.blogspot.pe/2016/05/triggers-
desencadenadores-sql-server.html