怎么给数据排序

WBOY
Release: 2016-06-23 13:55:26
Original
1021 people have browsed it

现在我的做法是加一个int字段
如 f_type
int越大  排序越靠前
就是 order by  f_type desc

请问还有什么方法进行排序?
谢谢!


回复讨论(解决方案)

有什么方法排序,要看具体的要求

只用过order by~ 应该没有其他了吧

要看你的排序标准是什么。

如果是按f_type
int越大  排序越靠前
就是 order by  f_type desc 了。

要看你想按什?排,才能?出??的排法。

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