手机
当前位置:查字典教程网 >编程开发 >mssql数据库 >SQL查找某一条记录的方法
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各种日期计算方法

SQL Server2005 异地备份的多种方法

五种提高 SQL 性能的方法

SQL中object_id函数的用法

SQLServer2005 没有服务器名称的两种解决方法

SQL SERVER 2008 无法附加数据库的解决方法

SQL语句的基本语法

SQL server 2005中设置自动编号字段的方法

在SQL Server 2005所有表中搜索某个指定列的方法

复制SqlServer数据库的方法

精品推荐
分类导航