mysql in 查询排序方面记录

| |
[不指定 2008/11/09 20:26 | by song ]
select * from siteblocks where id in (1,6,7,21,2,3,5) and manage<=1 order by instr(",1,6,7,21,2,3,5,",concat(",",id,","));
select * from siteblocks where id in (1,6,7,21,2,3,5) and manage<=1 order by FIND_IN_SET(id,'1,6,7,21,2,3,5');


哪个强悍点没去试 个人猜想2强悍点把
Tags: , , ,
PHP技术 | 评论(0) | 引用(0) | 阅读(215)
打開更多相關 mysql in 查询排序方面记录 的信息
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 如果无法察看请点击更换图片
请输入上面的字母,不区分大小写