DB2可用於清空大量數據表的not logged initially
create table tablename(id int, name char(20)) not logged initially;
對於創建表時設定了not logged initially的表而言,在命令行中,可以在交易中指定不記錄日誌:
alter table [tablename] activate not logged initially;
也可以考慮使用activate not logged initially清空表而不產生日誌:
alter table [tablename] activate not logged initially with empty table;
commit;