Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/09/2009, 10:44
Avatar de RedMew
RedMew
 
Fecha de Ingreso: septiembre-2009
Ubicación: Rioverde SLP
Mensajes: 111
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Como insertar datos usando WHERE

Cita:
Iniciado por huesos52 Ver Mensaje
La sintaxis está mal redMew.

Para hacer esto, no necesitas un insert, sino un update.

Código sql:
Ver original
  1. UPDATE hab SET costo=700 WHERE tipo=1;

saludos
OK, muchisimas gracias