|
-
You do not update a table doing an import. Import will try to insert every single row it finds in the dump file into the affected table.
Now you added a valuable piece of information... you have Referential Integrity constraints involving that table.
Are you sure you want to import "only" that table?... are you sure you are gonna get a RI consistent environment after that?
If you do, you have to deal with RI constraints; disable them... import... enable them.
Once you have your constraints disabled... what part of You can either drop your table or truncate it. In the second case use ignore=y option as appointed by Nir is not clear to you?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|