how to get the next autoincrement value in sql

后端 未结 10 955
时光取名叫无心
时光取名叫无心 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

    If you are using Microsoft SQL Server. Use this statement to get current identity value of table. Then add your seed value which you have specified at time of designing table if you want to get next id.

    SELECT IDENT_CURRENT()
    

提交回复
热议问题