Ver Mensaje Individual
  #15 (permalink)  
Antiguo 06/11/2012, 17:03
juan_aalberto
 
Fecha de Ingreso: octubre-2012
Ubicación: Durango
Mensajes: 34
Antigüedad: 11 años, 6 meses
Puntos: 0
Pregunta Respuesta: Problema con trigger

lo e puesto de la siguiente manera pero me marca error :(
Código MySQL:
Ver original
  1. INSERT INTO tabla (resultado)
  2. SELECT (@total:=@total+a+b+c) total
  3. FROM links JOIN (SELECT @total:=0) t1;