How to update the id column starting from 1 again

前端 未结 4 1320
执念已碎
执念已碎 2021-01-28 04:25

I am having problem to update the list of id number again starting from 1,2,3,4,5. Since I have deleted few records as I was testing the sql commands. Can you please help on how

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-28 05:21

    You should truncate the table to reseed it properly and not just use alter table

提交回复
热议问题