2009-04-30 17 views

Respuesta

39

utilizar una coma en lugar de su "Y":

UPDATE exercises 
SET times_answered = times_answered + 1, 
    av_answeringTime = av_answeringTime + ((av_answeringTime/(times_answered)) + ?) * (times_answered + 1) 
WHERE name = ? 
5

intentar algo como esto ...

UPDATE exercises 
SET times_answered = times_answered + 1, 
av_answeringTime = av_answeringTime + ((av_answeringTime/(times_answered)) + ?) * (times_answered + 1) 
WHERE name = ? 
24

La sintaxis SQL UPDATE es:

UPDATE table SET 
    column1 = value1, 
    column2 = value2 
WHERE condition 

En lugar de AND, necesita una coma

Cuestiones relacionadas