Sql语句求最小可用id                
                
                
                
                    摘要:selectidfromtestawherenotexists(select1fromtestwhereid=a.id+1)orderbyi...                
                selectidfromtestawherenotexists
(
select1fromtestwhereid=a.id+1
)
orderbyid
缺点,不从1开始计算。
【Sql语句求最小可用id】相关文章:
★ Sql Server 和 Access 操作数据库结构Sql语句小结
★ sql 左连接和右连接的使用技巧(left join and right join)
★ SQL Server不存在或访问被拒绝问题的解决第1/3页
★ SQL语句学习
★ 在ACCESS和SQL Server下Like 日期类型查询区别
