根据行号自动把当前行号插入到某列中 实现排序
update tempTable set DisplayOrder = right( CAST(rownum as NVARCHAR),5) from(
select DisplayOrder, ROW_NUMBER() over(order by name) rownum from Products
) tempTable
select * from Products a
DisplayOrder 列名
Products 表名