Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2002, 16:16
Avatar de BrujoNic
BrujoNic
Super Moderador
 
Fecha de Ingreso: noviembre-2001
Ubicación: Costa Rica/Nicaragua
Mensajes: 16.935
Antigüedad: 22 años, 6 meses
Puntos: 655
Re: 2 where en mysql

Select * from tabla
Where condicion1 = "valor1" and
condicion2 <> "valor2" or
condicion3 like "valor3";

No se ponen 2 where, más bien se separan las condiciones con and, or.

Saludos.

<p align="center"><embed src="http://www.vzam.com/images/brujonic1.swf" quality=high width="214" height="94">