Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6838 มุมมอง

Friends,

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

Settings > Technical > Sequence & Identifiers > Sequence

Now i cant edit & save it..

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

No 1 Know It

Everyone know that

ผู้เขียน

Shut up u Juan

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

thanks

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 23
4933
0
ม.ค. 23
94
1
ต.ค. 22
4252
0
เม.ย. 22
2806
Set an increment for customer reference แก้ไขแล้ว
2
มี.ค. 25
2868