sql 中根据 IN 排序字段

根据in条件来排序结果
select * from 表名 where
butxt in (
'a'
,'b'
,'c',
)
order by charindex(','+butxt+',','
,a,
,b,
,c,')

posted @ 2016-11-16 23:26  微笑代表淡定.Net  阅读(291)  评论(0)    收藏  举报