【IMP】IMP导入表的时候,如果表存在怎么办

在imp导入的时候,如果表存在的话,会追加数据在表中,

所以如果不想追加在表中的话,需要将想导入的表truncate掉后,在imp

SQL:

truncate table TEST1;

imp test/test file=test.dmp tables=test1 ignore=y buffer=40960000

这里要添加上ignore=y  否则导入会失败的




猜你喜欢

转载自blog.csdn.net/imliuqun123/article/details/80480702
imp