I need to renumber the rows of my database. After I delete some rows I have to renumber certain column. How can I do that using postgresql
?
UPDATE: For example: I have a table like this:
ac_n_circ name
1 x
2 y
8 c
15 b
And I want to renumber this table like this:
ac_n_circ name
1 x
2 y
3 c
4 b
Is there any algorithm or something like that to do this in posgresql?
Thanks!