摘要:
select count(*) from Report;sql server中不支持limit操作,但是可以用top;如下:[sql]view plaincopyselectidfromtablename如果要查询上述结果中前6条记录,则相应的SQL语句是:[sql]view plaincopyselecttop6idfromtablename如果要查询上述结果中第 7 条到第 9 条记录,则相应的SQL语句是:[sql]view plaincopyselecttop3idfromtablenamewhereidnotin(selecttop6idfromtablename)[sql]view 阅读全文
posted @ 2013-11-07 11:21
manmanlu
阅读(475)
评论(0)
推荐(0)
浙公网安备 33010602011771号