正在看的db2教程是:IBM DB2 日常维护汇总(四)。 46.如何快速清除一个大表?
ALTERTABLETABLE_NAMEACTIVENOTLOGGEDINITALLYWITHEMPTYTABLE
ALTER TABLETABLE_NAME ACTIVE NOT LOGGED INITALLY WITH EMPTYTABLE
两个commit之间的delete 动作是不记日志的
commit
alter table ab activate not logged intially
delete ab where id >1000
commit
(创建的表ab不记录日志:create table ab (id int) not logged initially)