|    
			
				19/11/2008, 03:30
			
			
			  | 
  |   | Colaborador |  |  Fecha de Ingreso: marzo-2008 Ubicación: Cáceres 
						Mensajes: 3.735
					 Antigüedad: 17 años, 7 meses Puntos: 300 |  | 
  |  Respuesta: Copiar datos entre tablas  
  Eso es porque hay una errata en la sintaxis: t,sid, en lugar de t.sid
 INSERT INTO tabla2 (id, catid , sid, title, url, description)
 SELECT t.id, t.catid, t,sid, t.title, t.url, t.description FROM tabla1;
 
 Prueba así:
 
 INSERT INTO tabla2 (id, catid , sid, title, url, description)
 SELECT t.id, t.catid, t.sid, t.title, t.url, t.description FROM tabla1 t;
 
 al aparecer la coma, se entiende que quieres insertar 7 datos en 6 campos y las cuentas no le resultan al programa. También deberías establecer el alias t si lo estás usando en la sintaxis.
     |