标签:
mysql写法:
SELECT * FROM EVENT WHERE eventId IN(443,419,431,440,420,414,509) ORDER BY INSTR(‘,443,419,431,440,420,414,509,‘,CONCAT(‘,‘,eventId,‘,‘))
oracle写法:
select name from order where oderid in(111,222,333,444,555,666)order by instr(‘111,222,333,444,555,666‘,orderid)
sqlserver写法:
Select * From Product Where id in (1,1588,15782,9887,54) Order By charindex(‘,‘+ id +‘,‘, ‘,1,1588,15782,9887,54,‘)
标签:
原文地址:http://www.cnblogs.com/dest/p/4203720.html