Who Can Use a SET GENERATOR?
The SET GENERATOR statement can be executed by:
-
The owner of the sequence (generator)
-
Users with the
ALTER ANY SEQUENCE(ALTER ANY GENERATOR) privilege
SET GENERATOR?The SET GENERATOR statement can be executed by:
The owner of the sequence (generator)
Users with the ALTER ANY SEQUENCE (ALTER ANY GENERATOR) privilege
SET GENERATOREMP_NO_GEN sequence to 145:SET GENERATOR EMP_NO_GEN TO 145;
|
Note
|
Similar effects can be achieved with [fblangref50-ddl-sequence-alter]: ALTER SEQUENCE EMP_NO_GEN RESTART WITH 145 + increment; Here, the value of increment is the current increment of the sequence.We need add it as |