posted 16 years ago
My advise: don't put logic in auto-generated id's.
If you need a unique id, then let Oracle's sequence mechanism generate one for you.
If you need to purge data older than two months, then create a field in your table to store the creation date.
It's better not to mix things up.
And you have a chance to write a performing purge query if the creation timestamp is in an Oracle date field, not if the date is hidden somewhere in a part of your unique id.
Regards, Jan
OCUP UML fundamental and ITIL foundation