Скрыть последних авторов
Alexandr Fokin 1.12 1 |(% style="width:111px" %) |(% style="width:1373px" %)[[PostgreSQL. Индексы>>doc:Разработка.Базы данных.SQL.PostgreSQL.Механизмы.PostgreSQL\. Индексы.WebHome]]
Alexandr Fokin 1.10 2 |(% style="width:111px" %)null поля|(% style="width:1373px" %)(((
Alexandr Fokin 1.9 3 По умолчанию (SQL) null поле не учитывается ограничении уникальности.
Alexandr Fokin 1.2 4 Чтобы добавить проверку уникальности по null значению нужно добавить фильтрующий индекс.
5
6 Create unique constraint with null columns
Alexandr Fokin 1.1 7 [[https:~~/~~/stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns>>https://stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns]]
Alexandr Fokin 1.3 8
9 [[EntityFramework | EntityFrameworkCore>>doc:Разработка.NET.Работа с БД.EntityFramework | EntityFrameworkCore.WebHome||style="outline-width: 0px !important; user-select: auto !important;"]]
10
11 {{code language="c#"}}
Alexandr Fokin 1.4 12 AreNullsDistinct()
Alexandr Fokin 1.3 13 {{/code}}
Alexandr Fokin 1.2 14 )))
Alexandr Fokin 1.12 15 |(% style="width:111px" %)Like запрос|(% style="width:1373px" %)(((
16 PostgreSQL LIKE query performance variations
17 [[https:~~/~~/stackoverflow.com/questions/1566717/postgresql-like-query-performance-variations>>https://stackoverflow.com/questions/1566717/postgresql-like-query-performance-variations]]
Alexandr Fokin 1.13 18
Alexandr Fokin 1.14 19 11.10. Operator Classes and Operator Families (text_pattern_ops)
Alexandr Fokin 1.13 20 [[https:~~/~~/www.postgresql.org/docs/current/indexes-opclass.html>>https://www.postgresql.org/docs/current/indexes-opclass.html]]
Alexandr Fokin 1.12 21 )))
Alexandr Fokin 1.10 22 |(% style="width:111px" %) |(% style="width:1373px" %)