Re: Variables locales dentro de un trigger
El codigo mas o menos es asi:
DELIMITER $$
DROP TRIGGER `sist_final`.`audit_rek_in`$$
CREATE TRIGGER `sist_final`.`audit_rek_in` AFTER INSERT on `sist_final`.`rek`
FOR EACH ROW BEGIN
<b>declare @usuario varchar(50)
set @usuario = concat(current_user(),"/",select nombre_usuario from usuario where estado = 'Activo') </b>
insert into auditoria (usuario,fecha,hora,accion,modulo) values (@usuario,current_date(),gethorario(current_time),'InserciĆ³n','GestiĆ³n REK')
END$$
DELIMITER ;
Subject
Views
Written By
Posted
8617
March 15, 2008 01:47PM
Re: Variables locales dentro de un trigger
3811
March 15, 2008 03:22PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.