The following are Set statement examples:
set journaling;
create table withlog1 ( ... );
create table withlog2 ( ... );
set nojournaling;
create table withlog3 ( ... ) with journaling;
create nolog1 ( ... );
create table a as ...;/* heap */
set result_structure hash;
create table b as select id ...;/* hash on 'id' */
set result_structure heap;
create table d as select id ...; /* heap again */
set lockmode session where level = page,
readlock = nolock,
maxlocks = 50, timeout = 10;
set lockmode on employee
where level = table, readlock = exclusive,
maxlocks = session, timeout = 0;
set lockmode session where level = system,
readlock = system,
maxlocks = system, timeout = system;
set session connection personnel;
set session
with description = 'payroll app: generating invoices';
set session with priority = -5
set session with priority = initial;
set role clerk with password='clerkpassword';