Can I update existing sequence values form staring with 1.
Example : In table one sequence column starting the sequence form 5001 but i want change that value form starting with 1.
If it is possible how can approach?
Can I update existing sequence values form staring with 1.
Example : In table one sequence column starting the sequence form 5001 but i want change that value form starting with 1.
If it is possible how can approach?
I think your easiest path is to delete the table and reload. Before reloading specify a primary key. This will prevent duplicates getting inserted.
You can change the sequence starting value with ALTER SEQUENCE. However, setting the start point back causes conflicts with existing values in the table. Also NuoDB does not necessarily handout sequence numbers in sequence. Given that it's a distributed database, a sequential number generator would greatly affect performance as each TE would need to check some master for next sequence number. What NuoDB does is handout a sequence block which the TE uses and then request another block when it runs out. If the TE is shut down and restarted it will get a new block.