mysql---这样的结构怎样排序??? 加个字段ord,与lev关系如下:ord lev0 31 42 0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ... order by lev=3 desc, lev desc ... order by lev=3 desc, lev desc这也行? 试试看 ... order by abs(lev-3) desc order by lev=3 desc, lev desc学习 偶测试xuzuning(唠叨)前辈的方法能用 order by lev=3 , lev desc 其实这样就可以了把,前一个desc可要可不要 create table tst( tst_id int)insert into tst select 0union all select 3union all select 4select * from tst order by case when tst_id=3 then 2 when tst_id=4 then 1 else 0 end descdrop table tst/*tst_id ----------- 340(所影响的行数为 3 行)*/ 有关站内搜索的一个简单问题 linux系统中,system v的问题,在线等 第一次运用smarty出错来看看吧!大侠们 高手指教:中文乱码问题SOS 求教在notepad++下快速调试代码片段 请教一个php手工分页和点击新闻标题显示详细信息的问题,望高手解答 用php上传文件 linux 下安装 php apache 的问题? win开发php,如何让php支持ldap? 为什么网页间参数无法传递?求教 我用数据库怎么只能存储18条数据啊 how to read a file by php
学习
(
tst_id int
)
insert into tst select 0
union all select 3
union all select 4
select * from tst order by case when tst_id=3 then 2 when tst_id=4 then 1 else 0 end desc
drop table tst
/*
tst_id
-----------
3
4
0(所影响的行数为 3 行)
*/