Reset a Sequence at Midnight on New Years Eve
402355May 19 2004 — edited May 20 2004
Hi,
How can I reset a sequence generator at midnight on New Years Eve?
Using SQL script and SQL-Plus, I know how to set the sequence increment to a negative number large enough to return the Next Val to 1 (then re-set increment to 1).
But, need help to understand how to cause this action to happen automatically. Im thinking along the lines of a trigger or stored procedure.
Thank you