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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -