网上看了很多关于"上一篇下篇"的文章,可大都是按ID排序. 实际上,很少有按ID排序的. 分享下我的单独排序字段的写法,主要分为ms sql2000 和 ms 2005及以上版本. SQL 2005及以上版本写法. declare @currentID int ;with temp as ( select row_number() over( order by short desc , createtime desc) as rowNum, * from ch_ItemInformat…
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ComparableTest { class Program { class Employee : IComparable<Employee> { private int empID; public Employee(int empID) { this.empID = empID; } public ov…