首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
django中如何分组求和排序???
larkifly
·
2013 年 12 月 26 日
· 8526 次点击
这是一个创建于 4402 天前的主题,其中的信息可能已经有所发展或是发生改变。
假设表S有a,b两个字段,sql语句为 select sum(b) as total from S group by a order by total;
这个在django中如何做?
total
django
SUM
3 条回复
•
1970-01-01 08:00:00 +08:00
1
geeklian
2013 年 12 月 26 日 via iPad
django doc 搜索annotate。
我在公交上。没法给完整的。
2
arbipher
2013 年 12 月 27 日
https://docs.djangoproject.com/en/dev/topics/db/aggregation/
3
7gong
2013 年 12 月 28 日
http://7gong.diandian.com/post/2011-04-09/18964028
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
5784 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms ·
UTC 03:20
·
PVG 11:20
·
LAX 19:20
·
JFK 22:20
♥ Do have faith in what you're doing.
❯