In this post, we will see how to resolve Insert two Records in new mysql table for each record in another table
Question:
I need to Insert two Records in a new mysql table for each record in another table example:table1
the second table should looks like: table2
Best Answer:
We can multiply the original table with a fixed list of rows with across join
:VALUES
statement makes the syntax neater:If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review