0

All the tables are of the same structure,does MySQL support this kind of operation?

3 Answers 3

2

Nope, it doesn't..............

Sign up to request clarification or add additional context in comments.

Comments

2

You can do multi-table updates, but not inserts, in a single statement.

Comments

1

This is not possible, but you could execute two (or more!) statements within a single transaction, thus treating the two operations as a single atomic operation. However, by default your database is most likely auto-committing after each statement, thus making a separate transaction for each executed statement. Refer to the manual's section on START TRANSACTION, COMMIT, and ROLLBACK syntax for more information on how to change this.

In general, though, I wouldn't recommend turning off auto-commit unless you're really sure you understand the implications of doing so.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.