how to get the next autoincrement value in sql

后端 未结 10 983
时光取名叫无心
时光取名叫无心 2020-12-16 13:21

I am creating a winform application in c#.and using sql database.

I have one table, employee_master, which has columns like Id, name, address

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 13:45

    When you delete a row from the table the next number will stay the same as it doesnt decrement in any way.

    So if you have 100 rows and you deleted row 100. You would have 99 rows but the next number is still going to be 101.

提交回复
热议问题