R
R
Roman2017-04-10 15:41:15
MySQL
Roman, 2017-04-10 15:41:15

How to move a record from one table to another?

Greetings!
I want to know how to copy data with replacement from one table to another correctly and without data loss.
Such a case, there are 2 schemas in one database from several interconnected tables by keys and a one-to-one relationship. . It is clear that this is a simple example. entities can be more complex and consist of multiple tables. The point is to transfer data to the public table without loss and failure, when there is a constant data sampling.
Use lock during fetch? Or is it enough to wrap it in a transaction?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question