MySQL - Problema con un trigger

 
Vista:
sin imagen de perfil

Problema con un trigger

Publicado por german (1 intervención) el 12/05/2014 09:58:40
Me estoy volviendo loco con la sintaxis, agradeceria que me ayudarais a revisar y que esta mal

1
2
3
4
5
6
7
8
9
10
11
create trigger prueba after update on pujas
for each row
begin
declare  tiempoActual  timestamp;
begin
select now() into tiempoActual;
select fechaHora from subasta;
IF ((tiempoActual + interval 30 second) > fechaHora) then
update subasta set fechaHora = fechaHora + INTERVAL 30 SECOND;
end if;
end;
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder