Why not set a dbms_job up to recreate the sequence
or even a cronjob which is quite
easy to set to run at 00:01 John -----Original
Message----- I have a need to reset a
sequence number at 00:01 everyday. I thought about creating a trigger to
check the time, but thought that there might be a better way than checking the
time every time a record is being added. I also thought about checking
the max date on the table and comparing against the system date. When system
date > max then
reset the sequence number. I like this
logic better and thought of holes with using the time. The only problem I have
is that this seems like a lot of overhead every time I add a record,
which will be often. Is a trigger the only
method available to me? Thanks, Laura |
Title: Trigger or ????
- Trigger or ???? Burton, Laura L.
- RE: Trigger or ???? Yexley Robert D Contr Det 1 AFRL/WSI
- Re:Trigger or ???? dgoulet
- Trigger or ???? Magaliff, Bill
- RE: Trigger or ???? John Hallas
- RE: Trigger or ???? Vergara, Michael (TEM)
- RE: Trigger or ???? Mark Leith
- RE: Trigger or ???? Khedr, Waleed
- RE: Trigger or ???? Burton, Laura L.