php - MySQL concatenate two tables -


this question has answer here:

i have 2 mysql tables same structure , want import data 1 of tables other one. run codeigniter , tried select data 1 of tables , insert other doesn't seem work good.

table structure: url, text, source, img, date

insert table1 select * table2

or can exclude id column, such:

insert table1 (url,text,source,img,date) select url, text, source, img, date table2 

Comments

Popular posts from this blog

string - Using python and postgres, variables within execute function? -

python - Getting ESC characters and non-printables from UDP socket / buffer -