Home > Database > Mysql Tutorial > mysql自定义排序顺序语句_MySQL

mysql自定义排序顺序语句_MySQL

WBOY
Release: 2016-05-27 14:12:11
Original
1387 people have browsed it

bitsCN.com mysql 自定义排序顺序

实例如:在sql语句中加入ORDER BY FIELD(status,3,4,0,2,1)语句可定义排序顺序

说明:status为排序字段,后面为该字段的相关值bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template