Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/08/2011, 07:29
Hallking
 
Fecha de Ingreso: febrero-2009
Mensajes: 188
Antigüedad: 15 años, 3 meses
Puntos: 1
Respuesta: Actualización de dos registro simultáneamente

bien el codigo no me funciono, me da este error :

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `category` join `category` id=7 on id=8 WHERE (id=7 or id=7) and (id=8 or ' at line 1

y esto fue lo q ise:

UPDATE `category` set posicion=6 FROM `category` inner join `category` id=7 on id=8
WHERE (id=7 or id=7) and (id=8 or id=8)