Buenas tardes amigos:
Consultita simple la mia!
Les cuento, tengo este triger:
Código SQL
[-]
AS
declare variable aux timestamp;
begin
if ((old.autorizacion != new.autorizacion) or
(old.fechavalidez != new.fechavalidez)) then
begin
select max(fechahorahasta) from autorizacion into :aux;
if (:aux > 'NOW') then
update autorizacion set fechahorahasta = 'NOW'
where
fechahorahasta = :aux;
insert into AUTORIZACION (NRODEAUTORIZACION,FECHAHORADESDE,FECHAHORAHASTA)
values (new.autorizacionsri,'NOW',new.fechavalidez);
end
end
donde al ultimo 'NOW' quiero sumarle 1 segundo cuando hace el insert ...
Me pueden ayudar?