Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Trigger or ????
How about using DBMS_JOB to do the reset for you?
HTH Mark
Mark Leith | T: +44 (0)1905 330 281 Sales & Marketing | F: +44 (0)870 127 5283 Cool Tools UK Ltd | E: mark_at_cool-tools.co.uk =================================================== http://www.cool-tools.co.uk Maximising throughput & performance
-----Original Message-----
L.
Sent: 14 May 2002 15:58
To: Multiple recipients of list ORACLE-L
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
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Mark Leith
INET: mark_at_cool-tools.co.uk
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue May 14 2002 - 11:48:33 CDT