php - copying data from multiple table and insert into one? -
i copy data multiple table , insert 1 table in same database. how can same php , mysql?
to general question, example insert query:
insert table3(col1, col2, col3, col4) select t1.col1, t1.col2, t2.col1, t2.col2 table1 t1, table2 t2 t1.idcolumn = t2.colid
Comments
Post a Comment