Informática, pregunta formulada por ejqc260415, hace 1 mes

CREE ESTOS TRIGGERS DE SQL SERVER, QUISIERA SABER SI ESTAN MAL O BIEN Y EN QUE DEBO CORREJIRLOS DEN EJEMPLOS EJECUTABLES, GRACIAS

/*==============================================================*/
/* Table: iNSERTAR */
/*==============================================================*/

create trigger insertarProducto
on producto
for insert
as
print 'Se inserto un nuevo registro en la tabla producto'

go

insert
into Producto values ('1233','2.50','45')




/*==============================================================*/
/* Table: ELIMINAR */
/*==============================================================*/

create trigger eliminarProducto
on producto
for delete
as
print 'Se eliminó un registro en la tabla producto'

go

delete
from Producto where id_Producto = '1234'





/*==============================================================*/
/* Table: ACTUALIZAR */
/*==============================================================*/
create trigger actualizarProducto
on producto
for update
as
print 'Se actualizo un registro en la tabla producto'

go

update Producto set Precio_Uni= '0.80',Stock= '54'
where id_Producto = '1233'

Respuestas a la pregunta

Contestado por sizaisabel43
0

Respuesta:

el 230.11232ii1155.772.7

Otras preguntas