DBMS KEYS IN HINDI

All DBMS keys:-

Rdbms में निम्नलिखित प्रकार की keys होती हैं।

1:- primary key:-

किसी relational table की primary key टेबल के प्रत्येक record को uniquely identify करता है।
primary key दो प्रकार की होती है।
1. simple primary key
2. composite primary key

1. Simple primary key:- simple primary key केवल एक field से मिलकर बना होता है।
image

2. composite primary key:- composite primary key एक से ज्यादा fields से मिलकर बनी होती है।
image

primary key को define करना:-
1. primary key अद्वितीय(unique) होती है।
2. किसी भी टेबल में केवल एक ही primary key हो सकती है।
3. ये single या multi column हो सकती है, multi column primary key को हम composite primary key कहते है।
4. composite primary key में अधिकतम 16 column हो सकते है।
5. यह null values को contain नही करती है।

2:-foreign key:- रिलेशनल डेटाबेस टेबल में एक foreign key columns का एक समूह होता है जो कि दो tables में data के मध्य link उपलब्ध कराता है।
कहीं कहीं पर foreign key को referencing key भी कहा जाता है।
जब किसी एक primary key को किसी दूसरे टेबल में प्राइमरी key के रूप में प्रयोग करते है तो उसे foreign key कहते हैं। foreign key, data में integrity को maintain करने के लिए method उपलब्ध कराता है।

image

3.Composite key:-

जब कोई primary key बहुत सारें attributes से मिलकर बनी होती है तो उसे हम composite key कहते है।
रिलेशनल डेटाबेस टेबल में composite key दो या दो अधिक columns का समूह होता है जो कि table में प्रत्येक row को uniquely identify करता है।

image

4. Artificial key:-

artificial key तब permit होती है जब
(a)- किसी भी attributes के पास primary key की सभी properties नही होती है।
(b)- primary key बहुत बड़ी तथा complex होती है।

5- Super key:-

RDBMS में एक super key, columns का एक combination होता है जो कि row को uniquely identify करता है।

6:- candidate key:-

RDBMS में candidate key वह key होती है जो कि एक table में primary key की candidate की तरह कार्य करती है। हम simple words में कह सकते है कि candidate key primary key की जरूरतों को पूर्ण करती है।

NOTE:- आपको ये पोस्ट कैसी लगी आप हमें कमेंट के माध्यम से अवश्य बतायें। हमें आपके कमेंट्स का बेसब्री से इन्तजार रहता है। अगर आपका कोई सवाल या कोई suggestions है तो हमें बतायें हम उसको एक या दो दिन के अंदर यहाँ प्रकाशित करेंगे और हाँ पोस्ट शेयर जरूर करें।

40 thoughts on “DBMS KEYS IN HINDI”

    • Thanks anurag …you can subscribe the site by putting email. Or just like our Facebook page. You will get new posts information.

      Reply
  1. i found every where but that keys concept was not any where .I realy like this post and i fully understood the concept much better than other websites

    Reply
  2. Such a good notes , simple language and best to understand…..
    Thanks alot sir ji…
    Please add another subject (c,c++,ds)notes for helping students..

    Reply

Leave a Comment