I have two mysql tables:
table 1:
id name type
1 a 123
2 b 125
table 2:
id text
1 test1
2 test2
these two tables need to be merged into a third table
table3:
id name type text
The id is an auto increment id. the first two tables have data that are not related. I mean, row for id=1 in table 1 has nothing to do with the row for id=1 in table two. So, I basically want to write a sql script which would insert values into table 3 to look like this in the end:
table3:
id name type text
1 a 123
2 b 125
3 test1
4 test2
the ids in the old tables and the new table don't have to match. Just the data from the tables need to be in the new table. I am very new to mysql and if anyone can help me with this, it would be great!
thanks!