PHP基础
PHP教程
php框架
JavaScript
asp.net
AJAX
正则表达式
ASP
输入
banner图
图片脚本
导航/分类
[SQL] 让特定的数据 排在最前
方法一
select
*
from
tableName
ORDER
BY
case
when
columnName
=
‘
张三
‘
then
0
else
1
end
asc
--
方法二
select
*
from
tableName
where
columnName
=
‘
张三
‘
union
all
select
*
from
tableName
where
columnName
<>
‘
张三
‘
[SQL] 让特定的数据 排在最前
标签: