As in the question, how do I automatically reset an Oracle sequence\'s value back to 0 every year in Oracle 10g?
I\'m using the sequence to generate an identifier i
I'm not sure there is a good way to do it, this isn't really what sequences are designed for. they are just purely incrementing unique numbers.
2 thoughts come to mind.
I'd tend to favor option 2, as its not trying to do anything fancy and is always going to work without fail, any options trying to manipulate the sequence itself are bound to bite you.