Mysql查询表中最小可用id值的方法【点击查看详情】
Mysql查询表中最小可用id值的方法:今天在看实验室的项目时,碰到了一个让我棘手的问题,其实也是自己太笨了。先把 sql 语句扔出来 // 这条语句在id没有1时,不能得到正确的查询结果。 select min(id+1) from oslist c where not exists (select id from osl
相关视频/文章