![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/10/2017, 05:11
|
![Avatar de mortiprogramador](http://static.forosdelweb.com/customavatars/avatar320585_1.gif) | Colaborador | | Fecha de Ingreso: septiembre-2009 Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 15 años, 5 meses Puntos: 214 | |
Respuesta: ingresar algunos datos de varias tablas hacia otra Intenta con esto (Ejemplo, ya lo adaptarás)
Código SQL:
Ver originalINSERT INTO table_end (field1, field2) SELECT field1, field2 FROM table_source1 s1 INNER JOIN table_source2 s2 ON s1.id = s2.foreign_id WHERE field1 = VALUE;
__________________ "Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com |