per page, with , order by , clip by
Results of 1 - 8 of about 8 for Greatest (0.039 sec.)
アグリゲーション (集計) — Django 6.1 ドキュメント 11712
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アグリゲーション (集計) ¶ 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
アグリゲーション (集計) — Django 6.1 ドキュメント 11712
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アグリゲーション (集計) ¶ 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
データベース関数 — Django 6.1 ドキュメント 9796
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベース関数 ¶ The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggrega ... . 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 6.1 ドキュメント 9507
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベース関数 ¶ The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggrega ... . 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 リリースノート — Django 6.1 ドキュメント 7446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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
Django 1.9 リリースノート — Django 6.1 ドキュメント 7446
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 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
索引 — Django 6.1 ドキュメント 7302
Django 6.1 ドキュメント Home | Table of contents | Index | Modules up 索引 記号 | _ | 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 | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | ... 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
索引 — Django 6.1 ドキュメント 7302
Django 6.1 ドキュメント Home | Table of contents | Index | Modules up 索引 記号 | _ | 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 | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | ... 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