首页
Java
登录
6mi
u
盘
搜
搜 索
Java
mysql查询按照指定字符串进行排序
mysql查询按照指定字符串进行排序
xiaoxiao
2021-02-28
80
ORDER
BY
case
WHEN
state
=
'normal
'
then
1
WHEN
state
=
'busy'
then
2
end
asc
按照状态查询,如果状态是normal表示是1,busy是2 升序排序
state
=
'normal
'
使用like 也可以
like
'
%name%
'
转载请注明原文地址: https://www.6miu.com/read-46262.html
技术
最新回复
(
0
)