Skip to content
Advertisement

For all entries in one table, add to another table

Database looks like this:

table1

table2

I want to make a query that passes the same data for all ID’s into table2. So after the query the database would look like the following:

table1

table2

I’ve tried to make some INNER JOIN queries, but I can’t seem to make it work. Any suggestions?

Advertisement

Answer

Do you want this?

Normally, ids are defined automatically, so you can probably leave that out:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement