Resolved: Insert two Records in new mysql table for each record in another table

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
I want to insert favorite site for each records in the second table and each record should have facebook and google as default
the second table should looks like: table2

Best Answer:

We can multiply the original table with a fixed list of rows with a cross join:
In recent MySQL versions (>= 8.0.19), the VALUES statement makes the syntax neater:

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com