1.获取指定表的行数

--获取表中数据行数
--select max([列名]) from 表名

2.筛选指定表的指定行数据(数据表分页获取)

 http://www.cnblogs.com/morningwang/archive/2009/01/02/1367277.html

--MAX方法实现筛选指定范围行的数据
SELECT TOP 59 * FROM hduCV1507022250
WHERE [recID] >
          (
          --SELECT ISNULL(MAX([recID]),0) 
          SELECT MAX(recID)
          FROM 
                (
                SELECT TOP (60*(5-1)) [recID] FROM hduCV1507022250 ORDER BY [recID]
                ) A
          )
ORDER BY [recID]



--Top方法实现筛选指定范围行的数据.
/*
select top 10 * from hduCV1507022250
where recID not in(select top 290 recID from hduCV1507022250)
*/

--获取表中数据行数
--select max([recID]) from hduCV1507022250

 

相关文章:

  • 2022-01-20
  • 2021-07-11
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-05-21
  • 2022-12-23
  • 2021-07-28
  • 2021-07-01
  • 2021-12-12
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案