begin;
lock sysuserlog in access exclusive mode;
create table bar as select * from sysuserlog;
truncate sysuserlog;
insert into sysuserlog (select * from bar);
commit;
begin;
lock sysuserlog in access exclusive mode;
create table bar as select * from sysuserlog;
truncate sysuserlog;
insert into sysuserlog (select * from bar);
commit;