- integrity constraints in dbms in hindi,
- Types of Integrity Constraint,
- Domain constraints,
- Entity integrity constraints,
- Referential Integrity Constraints,
- Key constraints,
- Types of Integrity Constraint,
Contents
show
Integrity Constraints in DBMS in Hindi
- Integrity constraints नियमों का एक समूह है। इसका उपयोग information की quality बनाए रखने के लिए किया जाता है।
- Integrity constraints यह सुनिश्चित करती है कि डेटा insertion, updating और अन्य प्रक्रियाओं को इस तरह से perform किया जाना चाहिए ताकि data integrity प्रभावित न हो।
- इस प्रकार, integrity constraint का उपयोग डेटाबेस को accidental damage से बचाने के लिए किया जाता है।
Types of Integrity Constraint
1. Domain constraints
- Domain constraints को एक attribute के लिए valid set of values की परिभाषा के रूप में परिभाषित किया जा सकता है।
- domain के data type में string, character, integer, time, date, currency आदि शामिल हैं। attribute की value संबंधित domain में उपलब्ध होनी चाहिए।
Example:
2. Entity integrity constraints
- Entity integrity constraint बताती है कि प्राथमिक key value, nullनहीं हो सकता है।
- ऐसा इसलिए है क्योंकि प्राथमिक key value का उपयोग संबंध में individual rows की पहचान करने के लिए किया जाता है और यदि प्राथमिक key की value null है, तो हम उन rows की पहचान नहीं कर सकते हैं।
- एक table में प्राथमिक key field के अलावा एक null value हो सकती है।
Example:
3. Referential Integrity Constraints
- एक referential integrity constraints दो तालिकाओं के बीच specified है।
- referential integrity constraints में, यदि तालिका 1 में एक foreign key तालिका 2 की प्राथमिक key को संदर्भित करती है, तो तालिका 1 में foreign key का प्रत्येक मान (value) null होना चाहिए या तालिका 2 में उपलब्ध होना चाहिए।
Example:
4. Key constraints
- Keys वह entity सेट है जिसका उपयोग किसी entity की विशिष्ट रूप से सेट की गई entity की पहचान करने के लिए किया जाता है।
- एक entity सेट में कई key हो सकती हैं, लेकिन इनमें से एक key प्राथमिक key होगी। एक प्राथमिक key में relational table में एक unique और null मान हो सकता है।
Example: