What is Schema in Hindi

What is Schema

  • Schema डेटाबेस का एक blueprint होता है।
  • यह डेटाबेस की structure (संरचना) को define करता है, जैसे tables, columns, relationships, और constraints।
  • Schema एक बार define होने के बाद बदलता नहीं है (यह relatively stable होता है)।
  • Schema overall description होता है database का।
  • स्कीमा logical description होता है किसी database का।
  • Database के डिज़ाइन को ही स्कीमा कहते हैं।

Schema डेटाबेस में डेटा कैसे logically store किया जाएगा और अलग-अलग tables और database objects के बीच क्या relationships होंगे।

  • यह डेटाबेस का एक blueprint (नक्शा) होता है, जो यह बताता है कि डेटा कैसे store, access, और manipulate किया जाएगा।
  • यह डेटाबेस में consistency (संगति) और integrity (सत्यता) को बनाए रखता है।

Schema एक blueprint या structure होता है जो बताता है कि डेटाबेस में डेटा कैसे organize और store किया जाएगा।

  • यह डेटाबेस के अंदर मौजूद tables, fields, relationships, views, indexes, और अन्य elements को define करता है।
  • यह डेटाबेस का logical view बताता है और डेटा के rules को specify करता है, जैसे डेटा के types, constraints (प्रतिबंध), और relationships।
  • Database Schema डेटाबेस का एक Logical Representation होता है।
  • यह बताता है कि डेटाबेस में डेटा कैसे store किया गया है।
What is Schema in Hindi

डेटाबेस स्कीमा का मुख्य काम:

  • यह डेटाबेस की structure को define करता है।
  • यह बताता है कि डेटाबेस में डेटा कैसे store और organize किया जाएगा।

Example: अगर हम एक school का डेटाबेस बना रहे हैं, तो schema यह define करेगा कि teacher table में कौन-कौन से कॉलम होंगे (जैसे name, id, dept) ।

Types of Schema (स्कीमा के प्रकार)

स्कीमा कों तीन प्रकारों मे बाँटा गया है

  1. Physical schema
  2. Logical schema
  3. View schema

1. Physical Schema:

  • यह डेटाबेस को physical level पर define व् design  करता है (जैसे डेटा कहाँ store होगा और कैसे access किया जाएगा)।
  • यह बताता है कि डेटा को storage system में कैसे store किया जाएगा। 
  • इसमें files, indices, और storage structures की arrangement को define किया जाता है। 
  • यह actual code और syntax को specify करता है जो database structure को create करने के लिए जरूरी होता है। 
  • Database Administrator (DBA)   storage locations और data organization को decide करता है। 

Example: डेटा किस file format में store होगा (जैसे binary, text) ।

2. Logical Schema:

  • यह डेटाबेस को logical level पर define व design करता है (जैसे tables और relationships) ।
  • यह डेटा की logical structure को define करता है, जैसे tables, views, relationships, और integrity constraints। 
  • यह बताता है कि डेटा कैसे tables में organize किया जाएगा और उनके attributes कैसे connected होंगे। 
  • Entity-Relationship (ER) Modeling   का use करके relationships को define किया जाता है। 
  • यह physical storage details से नहीं deal करता है। 
  • यह physical schema से higher level का abstraction होता है।
  • यह डेटाबेस का conceptual model होता है।
  • Employee table में कौन-कौन से columns होंगे (जैसे Employee_ID, Name, Salary) ।

3. View Schema:

  • यह डेटाबेस को user के view के हिसाब से define व डिफाइन  करता है (जैसे यूजर को केवल कुछ specific data दिखाना)।
  • यह database का highest level का abstraction होता है। 
  • यह बताता है कि users डेटाबेस के साथ कैसे interact करेंगे। 
  • यह users को एक interface प्रदान करता है जिससे वे डेटा को access और manipulate कर सकते हैं, बिना underlying storage mechanisms को समझे। 
  • एक डेटाबेस में multiple view schemas हो सकते हैं, जिन्हें subschemas भी कहा जाता है।
  • एक employee को केवल अपने salary details दिखेंगे, पूरे डेटाबेस की details नहीं।
  • यह यूजर को केवल वही डेटा दिखाता है जो उसके लिए जरूरी है।

Components of database schema:

  1. Tables: डेटा को rows और columns में store करता है।
  2. Views: डेटा का virtual representation होता है।
  3. Fields: टेबल के columns को कहते हैं।
  4. Keys: डेटा को uniquely identify करते हैं।
  5. Relationships: टेबल्स के बीच connections को define करते हैं।

Database Schema क्या करता है?  

1. Entities और Relationships को Define करता है:   

  • यह डेटाबेस के entities (जैसे tables) और उनके बीच के relationships को define करता है। 

2. Descriptive Detail प्रदान करता है:   

  • यह डेटाबेस का एक detailed description (विवरण) होता है, जिसे schema diagrams के जरिए दिखाया जा सकता है। 

3. Programmers की मदद करता है:   

  • Database Designers schema को इस तरह design करते हैं कि programmers डेटाबेस को आसानी से समझ सकें और उसे useful बना सकें।  

Advantages of Schema

  1. डेटा को organized तरीके से store करता है, जिससे access करना आसान होता है।
  2. डेटाबेस को structured और organized बनाता है।
  3. डेटा की accuracy और reliability को maintain करता है।

Disadvantages of Schema

  1. एक बार schema define हो जाने के बाद उसे बदलना मुश्किल हो सकता है।
  2. बड़े डेटाबेस के लिए schema design करना complex और time-consuming हो सकता है।

Database Schema डेटाबेस की structure और organization को define करता है।

  • यह डेटाबेस को efficient और scalable बनाने में मदद करता है।
  • Physical Schema डेटा को store करने का तरीका बताता है।
  • Logical Schema डेटा की logical structure को define करता है।
  • View Schema users को डेटाबेस के साथ interact करने का तरीका बताता है।

Leave a Comment