Quote:
|
Originally Posted by DBFinder
Is something possible for use as online. Without taking offtime.
I know I can create similar table and when data will be synchronized I can stop for a second and drop old table.
And . . . I donot know further. From here on.
Can I rename the table after dropping old one. ?? How ?? What about triggers and constarints ??
|
You cannot guarantee that the data in the old and new tables are identical, unless you lock the source table before starting the load, which will prevent any updates to the source.
To rename the target table you use, surprisingly, the RENAME statement. After dropping the original table you will have to re-create all indexes, constraints, and triggers to reference the new table.