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

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -