数据库或许自增长ID

select @@identity from LP_TeamLessonPlan

select SCOPE_IDENTITY() as id from LP_TeamLessonPlan

select max(id) from LP_TeamLessonPlan

SELECT IDENT_CURRENT('LP_TeamLessonPlan') AS ID

转载于:https://www.cnblogs.com/cjgu/p/5757369.html

你可能感兴趣的:(数据库)