摘要: 聚合查询 MySQL聚合函数:max\min\sum\count\avg from django.db.models import Max, Min, Sum, Avg, Count res = models.Book.objects.aggregate(Max('price'))#总计 如果没有分 阅读全文
posted @ 2024-01-31 23:25 半糖+奶茶 阅读(4) 评论(0) 推荐(0) 编辑