日期:2014-05-18 浏览次数:20481 次
select * from table where id in(10,6,9,20) order by charindex(',' + cast(id as nvarchar(20)) + ',' ,',10,6,9,20,') desc
------解决方案--------------------
access里用instr函数,
select * from table where id in(10,6,9,20) order by Instr("10,6,9,20",","+cstr(id)) desc