在读数据数时可否直接读5-10条。 没问题,用SQL语句来实现,示例如下:select top 5 * from (select top 10 * from Employees order by 列名 desc) as tmporder by tmp.列名 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果用SqlDataAdapter填充数据集的话可以,比如ds.Fill(ds,startindex,endindex,"tablename"); 在SQLServer中的话select top 5 * from tmp;Oracle中select * from tmp where rownum <= 5; 同意 guying999(求知)如果无排序,是没办法 “读数据数时可否直接读5-10条?“的。因为数据库中数据是没有先后顺序的 参考下面的帖子http://community.csdn.net/Expert/topic/3088/3088376.xml?temp=.8787042 selecct top 5 * from table where id not in (select top 10 id from table order by id asc) order by id asc 我刚才用我的测试啦,没错^_^select top 5* from aspnet where id not in (select top 10 id from aspnet order by id asc) order by id asc select top 5* from (select top 10* from aspnet order by id asc) asonet_s order by id desc也可以^_^ 【征服刷新】 关于子窗体刷新父窗体的问题(不是一般的父子窗体)! 怎么分开取020-85621454-0666 asp.net 对html标签如何操作 菜菜问题,急~~ htm或asp页面通过URL传值到aspx页面,中文乱码,怎么解决? web service 接受数据怎么写? 关于如何FRAME问题 用到水晶报表交叉表的问题 mvc的razor视图如何调用后台的方法? CS0234: 类型或命名空间名称“SqlClient”在类或命名空间“System.Data”中不存在(是否缺少程序集引用?) datatable 中增加一行. dm和datagrid连接问题
select top 5 * from tmp;
Oracle中
select * from tmp where rownum <= 5;
http://community.csdn.net/Expert/topic/3088/3088376.xml?temp=.8787042
selecct top 5 * from table where id not in (select top 10 id from table order by id asc) order by id asc
select top 5* from aspnet where id not in (select top 10 id from aspnet order by id asc) order by id asc