Исходный код вики Индексы
Версия 1.10 от Alexandr Fokin на 2024/03/24 14:33
Скрыть последних авторов
author | version | line-number | content |
---|---|---|---|
![]() |
1.10 | 1 | |(% style="width:111px" %)null поля|(% style="width:1373px" %)((( |
![]() |
1.9 | 2 | По умолчанию (SQL) null поле не учитывается ограничении уникальности. |
![]() |
1.2 | 3 | Чтобы добавить проверку уникальности по null значению нужно добавить фильтрующий индекс. |
4 | |||
5 | Create unique constraint with null columns | ||
![]() |
1.1 | 6 | [[https:~~/~~/stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns>>https://stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns]] |
![]() |
1.3 | 7 | |
8 | [[EntityFramework | EntityFrameworkCore>>doc:Разработка.NET.Работа с БД.EntityFramework | EntityFrameworkCore.WebHome||style="outline-width: 0px !important; user-select: auto !important;"]] | ||
9 | |||
10 | {{code language="c#"}} | ||
![]() |
1.4 | 11 | AreNullsDistinct() |
![]() |
1.3 | 12 | {{/code}} |
![]() |
1.2 | 13 | ))) |
![]() |
1.10 | 14 | |(% style="width:111px" %) |(% style="width:1373px" %) |
15 | |(% style="width:111px" %) |(% style="width:1373px" %) |