select top PageSize * from 表
where 條件 and id not in
(select top PageSize*(CurrentPageIndex-1) id from 表 where 條件 order by 排序條件)
order by 排序條件
《PageSize 是GridView中每頁顯示的信息條數,PageSize*(CurrentPageIndex-1) 在SQL中不識別,需定義變量來替換》
select top PageSize * from 表
where 條件 and id not in
(select top PageSize*(CurrentPageIndex-1) id from 表 where 條件 order by 排序條件)
order by 排序條件
《PageSize 是GridView中每頁顯示的信息條數,PageSize*(CurrentPageIndex-1) 在SQL中不識別,需定義變量來替換》
五、操縱dataset 在DataSet中DataRow是其所有數據的基本存放位置,它主要是由一個值數組組成,代表DataTable單獨一行。 Da