在imp导入的时候,如果表存在的话,会追加数据在表中,
所以如果不想追加在表中的话,需要将想导入的表truncate掉后,在imp
SQL:
truncate table TEST1;
imp test/test file=test.dmp tables=test1 ignore=y buffer=40960000
这里要添加上ignore=y 否则导入会失败的
在imp导入的时候,如果表存在的话,会追加数据在表中,
所以如果不想追加在表中的话,需要将想导入的表truncate掉后,在imp
SQL:
truncate table TEST1;
imp test/test file=test.dmp tables=test1 ignore=y buffer=40960000
这里要添加上ignore=y 否则导入会失败的