Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals Defining Data Integrity



Download 10,93 Mb.
Pdf ko'rish
bet63/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   59   60   61   62   63   64   65   66   ...   443
Bog'liq
BookSQL

22  

Microsoft SQL Server 2012 T-SQL Fundamentals



Defining Data Integrity

As mentioned earlier, one of the great benefits of the relational model is that data integrity is an 

integral part of it. Data integrity enforced as part of the model—namely, as part of the table defini-

tions—is considered declarative data integrity. Data integrity enforced with code—such as with stored 

procedures or triggers—is considered procedural data integrity

Data type and nullability choices for attributes and even the data model itself are examples of 

declarative data integrity constraints. In this section, I will describe other examples of declarative 

constraints: primary key, unique, foreign key, check, and default constraints. You can define such 

constraints when creating a table as part of the CREATE TABLE statement, or you can define them for 

already-created tables by using an ALTER TABLE statement. All types of constraints except for default 

constraints can be defined as composite constraints—that is, based on more than one attribute.


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   59   60   61   62   63   64   65   66   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish