SQL查找某一条记录的方法
摘要:SQL查找第n条记录的方法:selecttop1*fromtablewhereidnotin(selecttopn-1idfromtable...
SQL查找第n条记录的方法:
selecttop1*fromtablewhereidnotin(selecttopn-1idfromtable)temptable0
SQL查找第n条开始的m条记录的方法:
selecttopm*fromtablewhereidnotin(selecttopn-1idfromtable)temptable0)
(注:表中必须有一个唯一值字段才可适用此方法。)
【SQL查找某一条记录的方法】相关文章:
★ SQL SERVER 2008 无法附加数据库的解决方法
★ 通过SQLServer 2008 操作 MySQL的方法
★ SQL Server 2005 定时执行SQL语句的方法
★ SQL Server使用一个语句块批量插入多条记录的三种方法
★ SQL Server 2005 更改安装路径目录的方法小结
上一篇:
通用分页存储过程,源码共享,大家共同完善
下一篇:
使用 GUID 值来作为数据库行标识讲解