Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Mysql create table based on another table including indexes

0

93 views

I need to create a table based on another table in MYsql including the constraints and indices.

I have following scenario:

Table A- exists probably with millions of rows. I want to create table B with exactly same as table A (including constraints and indices). Process data from A and some other source and insert to B. At the end of processing drop table A(drop indices associated with table A) and Rename table B to A including indices.

What is the best way to do this? Performance is my real concern.

Thanks

asked January 25, 2011 7:09 pm CST
posted via StackOverflow

0 Answers

Be the first to answer this question

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions