Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6805 Zobrazení

Friends,

How to edit the "next number" field in a sequence from,

Settings > Technical > Sequence & Identifiers > Sequence

Now i cant edit & save it..

Thanks

Avatar
Zrušit
Autor

No 1 Know It

Everyone know that

Autor

Shut up u Juan

Nejlepší odpověď

I don't know if it the official solution but you can try this:

  1. Access database with something like psql or pgadmin3
  2. Find the sequence you want to reset
  3. enter query "ALTER SEQUENCE $yoursequence RESTART"

Now it should be reset to 1.

 

More information:

http://www.postgresql.org/docs/9.1/static/sql-altersequence.html

Avatar
Zrušit
Autor

thanks

If this helped you, please mark the answer as correct.

Related Posts Odpovědi Zobrazení Aktivita
0
úno 23
4901
0
led 23
94
1
říj 22
4241
0
dub 22
2785
2
bře 25
2829