How can I reset a autoincrement sequence number in sqlite

后端 未结 5 1666
广开言路
广开言路 2020-12-01 15:22

How to update table sqlite_sequence in Ormlite ? I just need update seq. How can I get that table via ORMLite ?

EDIT

I can\'t find ORLite t

5条回答
  •  [愿得一人]
    2020-12-01 15:36

    Inside your .db file there's an table called sqlite_sequence

    Each row has two columns name which is the name of the table seq a integer indicating the current last value at this table

    You can update it to 0

    But beware if your table use this id as the unique identifier.

提交回复
热议问题