Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts, :)
Would u like to help me ? I wanna reset id (auto incremental) in oracle, but i don't know how to do that.. i've tried to find the solution, but i've not found that.. :(
Help me please experts... :( Thank you.
Posted

1 solution

As soon as I remember there is no auto_increment in Oracle. It is done through sequences. So you need to find sequence and update it. If it is not possible then drop and recreate.
 
Share this answer
 
Comments
Teamsar Muliadi 20-Aug-10 2:24am    
Mmm.. yup, i have known about it.. To make an autoincrement, we must create a sequence and then make a trigger for it.. :)
My question is how to reset the autoincrement.. and then you have just said update the sequence.. but i don't know how to do that.. would u like to help me, how to do that expert ??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900