SP.NET页面的DataList控件中,如果采用SQL语句实现数据分页,那么下面选项中( )SQL语句可以实现“从publish表中按降序取出第n条到第m条的记录“的功能。

admin2017-01-26  22

问题 SP.NET页面的DataList控件中,如果采用SQL语句实现数据分页,那么下面选项中(    )SQL语句可以实现“从publish表中按降序取出第n条到第m条的记录“的功能。

选项 A、SELECT TOP n-1* FROM publish WHERE (id NOT IN (SELECT TOP         m-n-1 id  FROM publish) order by iD
B、SELECT TOP m-n+1* FROM publish WHERE (id NOT IN (SELECT TOP n-1 id  FROM publish) order by id desC
C、SELECT TOP n-1* FROM publish WHERE (id NOT IN (SELECT TOP m-n-1 id  FROM publish) order by id desC
D、SELECT TOP m-n+1* FROM publish WHERE (id NOT IN (SELECT TOP n-1 id  FROM publish) )order by id desc

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/OGpD777K
0

最新回复(0)