Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/05/2009, 07:53
takiy
 
Fecha de Ingreso: mayo-2008
Mensajes: 11
Antigüedad: 16 años, 9 meses
Puntos: 0
Respuesta: Uniom de 2 Tablas php y mysql

aver bueno tome el paso 1 puse esto
Código:
SELECT (id, nom, direc, cont FROM live) UNION ALL ( SELECT id, nom direc, cont FROM live2 ) ORDER BY cont LIMIT 0 , 30
y me sale esto:
Código:
#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 'FROM live ) UNION ALL ( SELECT id, nom direc, cont FROM live2 ) ORDER BY' at line 3
bueno estoy analizando

y la version de mi mysql es

Servidor: Localhost via UNIX socket
Versión del servidor: 5.0.77
Versión del protocolo: 10

Última edición por takiy; 25/05/2009 a las 07:59