-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql排序 #130
Comments
没听懂。。。?有具体的链接吗? |
是这样的: 你的文档url: 你在文档里写的内容: 以上内容错误的地方: 实际情况: |
你说的是查询时候mysql支持,我指的是建立的时候。 |
嗯,是我没有get到,多谢。 |
这里说到的mysql不支持按不同字段排序有误:
https://github.com/alsotang/node-lessons/tree/master/lesson15
在建立复合索引时,mongodb 可以指定同时按不同字段的排序,比如两个字段 is_top(置顶) 和 create_time(创建时间) 要建立复合索引,我们可以指定 is_top 按正序排,create_time 按逆序排。mysql 说是有计划支持这个特性,不过目前也没什么消息。
实际情况是,mysql支持指定同时按不同字段的排序。
The text was updated successfully, but these errors were encountered: