Skip to content

Migration question #684

Answered by keithf4
doruiulian asked this question in Q&A
Discussion options

You must be logged in to vote

The built-in function that you used is for moving the data, so there is no option to keep the data in the old table using the built in functions.

You can simply do an INSERT INTO ... SELECT ... FROM statement if you want to copy the data from one place to another. That will do it all in one transaction, so if it's a lot of data on a production system that may not be ideal. In that case you'd need to find a way to batch it and use some external tracking method to know where the last batch left off since all of the old data is still there.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by doruiulian
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants