![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Is there any way in db2 to reset the identity/sequence to reset automatically after some period of time?? Eg:- the ID format is<SEQ/IDENTY>/YYYY (001/2010,,,,002/2010....901/2010...) after one year i want the SEQ/IDENTY to start with 001 ie : (001/2011..002/2011).. DB2 has scheduling capability. Just fire an ALTER SEQUENCE statement |
![]() |
| Thread Tools | |
| Display Modes | |
| |