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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -