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 行)*/ 问个基本问题,能显示的声明变量吗? 求dreamweaver+php基础教程 如何获取下拉列表框中的选择值 帮忙看看php的一个离奇的问题 我想问一下文本框右侧点一下+号能够增加1的控件叫什么 分享帖:零基础同学如何学习php 如何修改数组(array)中的键名(key)? php中画图只能用命令一行行的写吗?太烦了!有没有什么工具? 路径问题,急!! 使用CDN加速不能正确获取用户真实IP地址问题,帮忙 我用数据库怎么只能存储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 行)
*/