Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2006.07.30;
Скачать: [xml.tar.bz2];

Вниз

Первичный ключ   Найти похожие ветки 

 
SHD_   (2006-05-26 16:17) [0]

Кто нить знает в MSSQL первичный ключ является индексом или нет?

В общем создавать индекс на первичный ключ нужно?


 
Desdechado ©   (2006-05-26 16:19) [1]

ключ индексом не является, но требует уникального индекса для проверки "ключевости"
это обычно
как в MS - хз


 
Zz_   (2006-05-26 16:20) [2]

When you specify a PRIMARY KEY constraint for a table, Microsoft® SQL Server™ 2000 enforces data uniqueness by creating a unique index for the primary key columns. This index also permits fast access to data when the primary key is used in queries.


 
Ega23 ©   (2006-05-26 17:03) [3]

PRIMARY KEY Constraints
A table usually has a column or combination of columns whose values uniquely identify each row in the table. This column (or columns) is called the primary key of the table and enforces the entity integrity of the table. You can create a primary key by defining a PRIMARY KEY constraint when you create or alter a table.

A table can have only one PRIMARY KEY constraint, and a column that participates in the PRIMARY KEY constraint cannot accept null values. Because PRIMARY KEY constraints ensure unique data, they are often defined for identity column.

When you specify a PRIMARY KEY constraint for a table, Microsoft® SQL Server™ 2000 enforces data uniqueness by creating a unique index for the primary key columns. This index also permits fast access to data when the primary key is used in queries.

If a PRIMARY KEY constraint is defined on more than one column, values may be duplicated within one column, but each combination of values from all the columns in the PRIMARY KEY constraint definition must be unique.



 
Desdechado ©   (2006-05-26 17:41) [4]

Ega23 ©   (26.05.06 17:03) [3]
снова не удержался?
:)



Страницы: 1 вся ветка

Форум: "Базы";
Текущий архив: 2006.07.30;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.011 c
3-1148563915
_RusLAN
2006-05-25 17:31
2006.07.30
Связка TIBQuery + TDBGridEh + TUpdateSQLW. Подправить даные.


2-1152217248
muha89
2006-07-07 00:20
2006.07.30
нужна помощь


3-1148770554
Кашперук Иван
2006-05-28 02:55
2006.07.30
BDE Administrator и PARADOX


15-1151838597
vidiv
2006-07-02 15:09
2006.07.30
Сертификаты


15-1151407839
DevilDevil
2006-06-27 15:30
2006.07.30
Скиньте Плиз Стандартный OpenGL.pas





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский