Home  >  Article  >  Backend Development  >  求大大们支招啊 怎么让sql读出来的数据按数字排列

求大大们支招啊 怎么让sql读出来的数据按数字排列

WBOY
WBOYOriginal
2016-06-13 12:34:57759browse

求大大们支招啊 如何让sql读出来的数据按数字排列
这个是sql 语句
SELECT * FROM blog WHERE gid='1'
读出来的数据有
5
1
2
3
4

读取到5的时候就错误了 不按顺序了这么才能根据id的顺序来进行排列

Statement:
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