Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/05/2008, 17:46
dieguito01
 
Fecha de Ingreso: abril-2007
Mensajes: 77
Antigüedad: 17 años, 1 mes
Puntos: 0
Re: No me deja utilizar UNION con WHERE

Gracias por responder!, encontré una solucion especificando a cada uno el WHERE

Código:
(SELECT * FROM categoriavideos WHERE idioma='ES')
UNION ALL 
(SELECT * FROM categoriamusica WHERE idioma='ES')
UNION ALL 			 
(SELECT * FROM categorianoticias WHERE idioma='ES')
ORDER BY fecha DESC, hora DESC LIMIT 20"
Al campo idioma lo tengo como FULLText, esta bien con un WHERE idioma='ES' ?