Ver Mensaje Individual
  #10 (permalink)  
Antiguo 01/02/2012, 03:40
Avatar de protoameeba
protoameeba
 
Fecha de Ingreso: septiembre-2005
Mensajes: 195
Antigüedad: 18 años, 7 meses
Puntos: 3
Respuesta: Consulta 2 tablas distintas mysql

Es que si pongo esto:


SELECT votos FROM SELECT votos FROM album_1 UNION ALL SELECT votos FROM album_2 ORDER BY votos DESC LIMIT 3


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 'SELECT votos FROM album_1 UNION ALL SELECT votos FROM album_2 ORDER BY votos ' at line 1
__________________
Ser libre no es hacer lo ke uno kiere, sino kerer lo ke uno hace....