
Signature
Regards,
Troels Arvin <troels@arvin.dk>
http://troels.arvin.dk/
>>> On 5/22/2008 at 3:51 PM, in message <g14psm$d6b$1@news.net.uni-c.dk>,
>> It uses "IMPORT FROM NUL OF DEL REPLACE INTO ...", where other examples
[quoted text clipped - 7 lines]
> http://groups.google.com/group/comp.databases.ibm-db2/browse_frm/thread/
> cc36736aa9b81c6c/a0ba85f541175295
Does this mean that IMPORT does logging?
If so, why would this method be preferred over just a plain DELETE FROM
<table> statement?
In the case I'm looking for it's simply for truncating a table for testing,
so I can rerun the test and insert the data again. I assume in this case I
would not care about it being recoverable.
Frank
Ian - 28 May 2008 06:07 GMT
>>>> On 5/22/2008 at 3:51 PM, in message <g14psm$d6b$1@news.net.uni-c.dk>,
>>> It uses "IMPORT FROM NUL OF DEL REPLACE INTO ...", where other examples
[quoted text clipped - 10 lines]
> If so, why would this method be preferred over just a plain DELETE FROM
> <table> statement?
Yes, but it just logs a small record indicating that the table was
replaced (truncated).
Obviously this is much more efficient than logging each record that is
deleted.
> In the case I'm looking for it's simply for truncating a table for testing,
> so I can rerun the test and insert the data again. I assume in this case I
> would not care about it being recoverable.
That could certainly be the case.
Remember, "recoverable" only applies if your database is enabled for
archive logging.