mysql - Join 2 tables with all same column headers but one different -


how join 2 tables have of same column headers one?

the other 3 columns same 1 table has column header "january" , other table has column header "february"

so end 5 total columns in new table

i of data in there if there duplicates. before used union cannot because not headers same.

thanks!

you can use union , rename 1 of columns:

select id, name, age, xxx table1 union select id, name, age, yyy xxx table2 

if add more information, can elaborate answer


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -