Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: time based sequence/trigger
you can do this
try to use the Oracle Sequence Object and at the end of the day you have to drop that sequence Object and then recreacte that so to reset the next value.
"John Dunn" <JLDunn_at_ukgateway.net> wrote in message news:<3bc499e6$0$230$cc9e4d1f_at_news.dial.pipex.com>...
> I have a column in a table. I want the value to increment automatically each
> time a record is created. But I would also like the value to reset to 1 when
> the first record of the day is written, i.e the first record after midnight.
>
> Is there anyway to do this?
>
> John
Received on Wed Oct 10 2001 - 18:55:25 CDT