per page, with , order by , clip by
Results of 1 - 10 of about 16 for Coalesce (0.009 sec.)
データベース関数 — Django 6.1 ドキュメント 12580
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 ... ( ... age_as_float = Cast ( "age" , output_field = FloatField ()), ... ) . get () >>> print ( author . age_as_float ) 25.0 Coalesce ¶ class Coalesce ( * expressions , ** extra ) [ソース] ¶ 少なくとも2つのフィールド名または式のリストを受け取り、最初のNULL ... et a screen name from least to most public >>> from django.db.models import Sum >>> from django.db.models.functions import Coalesce >>> Author . objects . create ( name = "Margaret Smith" , goes_by = "Maggie" ) >>> author = Author . objects . annotate ( ... screen_name = Coalesce ( "alias" , "goes_by" , "name" )) . get () >>> print ( author . screen_name ) Maggie >>> # Prevent an aggregate Sum() from ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
データベース関数 — Django 6.1 ドキュメント 12580
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 ... ( ... age_as_float = Cast ( "age" , output_field = FloatField ()), ... ) . get () >>> print ( author . age_as_float ) 25.0 Coalesce ¶ class Coalesce ( * expressions , ** extra ) [ソース] ¶ 少なくとも2つのフィールド名または式のリストを受け取り、最初のNULL ... et a screen name from least to most public >>> from django.db.models import Sum >>> from django.db.models.functions import Coalesce >>> Author . objects . create ( name = "Margaret Smith" , goes_by = "Maggie" ) >>> author = Author . objects . annotate ( ... screen_name = Coalesce ( "alias" , "goes_by" , "name" )) . get () >>> print ( author . screen_name ) Maggie >>> # Prevent an aggregate Sum() from ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
クエリ式 (Query Expression) — Django 6.1 ドキュメント 10033
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... します: from django.db.models import F Company . objects . update ( is_active =~ F ( "is_active" )) Func() 式 ¶ Func() 式は COALESCE や LOWER のようなデータベース関数や、 SUM のような集計を含むすべての式の基本型です。これらは直接使用できます: from django. ... a tuple or list of strings and/or expressions) that specifies the ordering of the elements in the result. 引数 default は Coalesce に集計句と一緒に渡される値を取ります。これは、クエリセット(またはグループ化)にエントリがない場合に None 以外の値を返すよう ... エリ式を使用したり、他のクエリ式と統合したりする独自のクエリ式クラスを書くことができます。組み込みの Func() 式 を使用せずに COALESCE SQL関数の実装を書く例を見てみましょう。 SQL 関数 COALESCE はカラムや値のリストを受け取るように定義されています。この関数は ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
クエリ式 (Query Expression) — Django 6.1 ドキュメント 10033
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... します: from django.db.models import F Company . objects . update ( is_active =~ F ( "is_active" )) Func() 式 ¶ Func() 式は COALESCE や LOWER のようなデータベース関数や、 SUM のような集計を含むすべての式の基本型です。これらは直接使用できます: from django. ... a tuple or list of strings and/or expressions) that specifies the ordering of the elements in the result. 引数 default は Coalesce に集計句と一緒に渡される値を取ります。これは、クエリセット(またはグループ化)にエントリがない場合に None 以外の値を返すよう ... エリ式を使用したり、他のクエリ式と統合したりする独自のクエリ式クラスを書くことができます。組み込みの Func() 式 を使用せずに COALESCE SQL関数の実装を書く例を見てみましょう。 SQL 関数 COALESCE はカラムや値のリストを受け取るように定義されています。この関数は ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
Django 2.2.2 リリースノート — Django 6.1 ドキュメント 8854
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.2.2 リリースノート ¶ June 3, 2019 Django 2.2.2 fixes security issues and several bugs in 2.2.1. CVE-2019-12308: AdminURLFieldWidget XSS ¶ T ... ng contains an expression ( #30463 ). Fixed a regression in Django 2.2.1 where SearchVector generates SQL with a redundant Coalesce call ( #30488 ). Fixed a regression in Django 2.2 where auto-reloader doesn't detect changes in manage.py file when using ...
https://man.mtool.work/django/6.1/releases/2.2.2.html
Django 2.2.2 リリースノート — Django 6.1 ドキュメント 8854
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 2.2.2 リリースノート ¶ June 3, 2019 Django 2.2.2 fixes security issues and several bugs in 2.2.1. CVE-2019-12308: AdminURLFieldWidget XSS ¶ T ... ng contains an expression ( #30463 ). Fixed a regression in Django 2.2.1 where SearchVector generates SQL with a redundant Coalesce call ( #30488 ). Fixed a regression in Django 2.2 where auto-reloader doesn't detect changes in manage.py file when using ...
https://man.mtool.work/django/6.1/releases/2.2.2.html
マネージャ — Django 6.1 ドキュメント 8265
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » マネージャ ¶ class Manager [ソース] ¶ マネージャ (Manager) とは、Django のモデルに対するデータベースクエリの操作を提供するインターフェイスです。Djan ... カスタム Manager は with_counts() メソッドを追加します: from django.db import models from django.db.models.functions import Coalesce class PollManager ( models . Manager ): def with_counts ( self ): return self . annotate ( num_responses = Coalesce ( mode ...
https://man.mtool.work/django/6.1/topics/db/managers.html
マネージャ — Django 6.1 ドキュメント 8265
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » マネージャ ¶ class Manager [ソース] ¶ マネージャ (Manager) とは、Django のモデルに対するデータベースクエリの操作を提供するインターフェイスです。Djan ... カスタム Manager は with_counts() メソッドを追加します: from django.db import models from django.db.models.functions import Coalesce class PollManager ( models . Manager ): def with_counts ( self ): return self . annotate ( num_responses = Coalesce ( mode ...
https://man.mtool.work/django/6.1/topics/db/managers.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 7485
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... if ... elif ... else logic within queries. A collection of database functions is also included with functionality such as Coalesce , Concat , and Substr . TestCase data setup ¶ TestCase has been refactored to allow for data initialization at the class l ...
https://man.mtool.work/django/6.1/releases/1.8.html
アグリゲーション (集計) — Django 6.1 ドキュメント 7485
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » アグリゲーション (集計) ¶ Djangoのデータベース抽象API のトピックガイドでは、個別のオブジェクトの作成、取得、削除を行うDjangoのクエリの使い方を説明し ... = "web" ) . aggregate ( Sum ( "price" , default = 0 )) {"price__sum": Decimal("0")} 内部では、 default 引数は、集計関数を Coalesce でラップすることによって実装されています。 Aggregating with MySQL ONLY_FULL_GROUP_BY enabled ¶ When using the values() cla ...
https://man.mtool.work/django/6.1/topics/db/aggregation.html
PREV 1 2 NEXT