摘要: day05回顾查询: 聚合查询 聚合函数: from django.db.models import Sum,Count,Avg,Max,Min 1. 不分组的聚合查询 MyModel.objects.aggregate(结果变量=聚合函数("列")) Book.objects.aggregate(mycnt=Count('id'))... 阅读全文
posted @ 2019-07-18 19:10 圣枷 阅读(134) 评论(0) 推荐(0) 编辑