我有一个包含大量数据的表。我已经对identity列进行了降序筛选,并使用两个标签对数据进行筛选。但这并不重要,重要的是现在我需要解决字段field,当第五个字段中的数据是"this one“时,需要将该行放在顶部。有没有办法对其进行编程?
可能是在Page_Load、GridView1_DataBound或GridView1_DataBinding中
示例见图:
发布于 2011-09-04 22:24:52
select *
from table
order by
case when fifth = 'this one' then 0 else 1 end,
firstId DESChttps://stackoverflow.com/questions/7299804
复制相似问题