摘要: (在SQLserver环境下测试通过) 数值型: select * from table where id in(1,2,3,4) order by charindex(','+ltrim(rtrim(str(id)))+',',',1,2,3,4,') 字符型: select * from table where usn in('aaa','bbb','ccc','ddd') orde... 阅读全文
posted @ 2007-12-27 15:25 missthe 阅读(241) 评论(0) 推荐(0) 编辑