Basic
Basic

Reputation: 1866

2 mysql entries into different tables in one query?

I know how to enter information into one table, but how would I enter or take information from 2 different tables at the same time. I have researched and it has something to do with JOIN, but I have tried to no avail!

Upvotes: 0

Views: 107

Answers (1)

zerkms
zerkms

Reputation: 254916

It is not possible to insert into 2 tables in one query.

(Technically - you can create a trigger in table A, that inserts something to table B, but in this case you're not able to control what data to insert from the INSERT)

Upvotes: 2

Related Questions