方法一:通过mysql自带函数MAX();
例如:select MAX(studentId) from students
方法二:通过倒序的方法
select studentId from students order by studentId desc limit 1;
方法一:通过mysql自带函数MAX();
例如:select MAX(studentId) from students
方法二:通过倒序的方法
select studentId from students order by studentId desc limit 1;