per page, with , order by , clip by
Results of 1 - 4 of about 4 for Greatest (0.006 sec.)
アグリゲーション (集計) 12112
アグリゲーション (集計) Djangoのデータベース抽象API のトピックガイドでは、個別のオブジェクトの作成、取得、削除を行うDjangoのクエリの使い方を説明しました。しかし、オブジェクトのコレクションを 集計 (アグリゲーション) した値や、集計することによ ... a mix of aggregate and non-aggregate expressions. Take the following example: >>> from django.db.models import F , Count , Greatest >>> Book . objects . values ( greatest_pages = Greatest ( "pages" , 600 )) . annotate ( ... num_authors = Count ( "authors ... " ), ... pages_per_author = F ( "greatest_pages" ) / F ( "num_authors" ), ... ) . aggregate ( Avg ( "pages_per_author" )) This creates groups of books based on the ... SQL column GREATEST(pages, 600) . One unique group consists of books with 600 pages or less, and other unique groups will consist of books wit ...
https://man.mtool.work/django/6.1/topics/db/aggregation.html
データベース関数 9597
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... . objects . order_by ( Collate ( "name" , "et-x-icu" )) <QuerySet [<Author: Ursula>, <Author: Veronika>, <Author: Ülle>]> Greatest class Greatest ( * expressions , ** extra ) [ソース] 少なくとも2つのフィールド名または式のリストを受け取り、最大値を返しま ... now = True ) blog = models . ForeignKey ( Blog , on_delete = models . CASCADE ) >>> from django.db.models.functions import Greatest >>> blog = Blog . objects . create ( body = "Greatest is the best." ) >>> comment = Comment . objects . create ( body = "N ... o, Least is better." , blog = blog ) >>> comments = Comment . objects . annotate ( last_updated = Greatest ( "modified" , "blog__modified" )) >>> annotated_comment = comments . get () annotated_comment.last_updated は blog.modifi ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Django 1.9 リリースノート 7692
Django 1.9 リリースノート December 1, 2015 Django 1.9 へようこそ! このリリースノートでは、 バージョン 1.9 の新機能 と、Django 1.8 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機 ... as DurationField . Added the date lookup to DateTimeField to allow querying the field by only the date portion. Added the Greatest and Least database functions. Added the Now database function, which returns the current date and time. Transform is now a ...
https://man.mtool.work/django/6.1/releases/1.9.html
索引 7544
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... delAdmin (django.contrib.gis.admin のクラス) GistIndex (django.contrib.postgres.indexes のクラス) gml (OGRGeometry の属性) Greatest (django.db.models.functions のクラス) GROUP (WindowFrameExclusion の属性) groups (models.User の属性) gt field lookup type ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT