Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/09/2005, 03:44
chiririo
 
Fecha de Ingreso: agosto-2005
Mensajes: 101
Antigüedad: 21 años, 1 mes
Puntos: 0
A ver si algo asi te vale:

Código PHP:
select id from cachivache ca,lavadora la where ca.localizacion = 2 and la.localizacion=2 and (ca.id =1 or ca.id =4 or la.id =1 or la.id=2) 
O algo asi:

Código PHP:
select id from cachivache where localización=1 and (id=1 or id=4) UNION 
select id from lavadora where localización
=1 and (id=1 or id=2)