Chapter 1 (Hindi)

9. DBMS Languages

 DBMS Languages (DBMS की भाषाएँ)

DBMS अलगअलग languages use करता है ताकि data को manage और handle किया जा सके। हर language का अलग काम होता है।

🔷 1. DDL – Data Definition Language (डेटा परिभाषा भाषा)

  • English: Used to define or change the structure of the database.
  • Hindi: Database की structure को define या change करने के लिए use होती है।

🛠️ Common Commands (आम कमांड्स):

  • CREATE – Makes a new table (नया table बनाता है)
    👉 Example: CREATE TABLE Students (...)
  • ALTER – Changes an existing table (पुराने table को बदलता है)
    👉 Example: ALTER TABLE Students ADD Email

📌 Think of DDL (सोचिए): Building or renovating the database (Database को बनाना या renovate करना)

🔷 2. DML – Data Manipulation Language (डेटा हेरफेर भाषा)

  • English: Used to work with actual data inside tables.
  • Hindi: Tables के अंदर actual data पर काम करने के लिए use होती है।

🛠️ Common Commands (आम कमांड्स):

  • SELECT – Shows data (Data दिखाता है)
    👉 Example: SELECT * FROM Students
  • INSERT – Adds new data (नया data डालता है)
    👉 Example: INSERT INTO Students VALUES (...)

📌 Think of DML (सोचिए): Filling or reading data in database (Database में data भरना या पढ़ना)

🔷 3. DCL – Data Control Language (डेटा नियंत्रण भाषा)

  • English: Used to control access to data — who can see or change it.
  • Hindi: Data पर access control करने के लिए use होती हैकौन देख सकता है या बदल सकता है।

🛠️ Common Commands (आम कमांड्स):

  • GRANT – Gives permission (अनुमति देता है)
    👉 Example: GRANT SELECT ON Students TO Teacher
  • REVOKE – Removes permission (अनुमति हटाता है)
    👉 Example: REVOKE SELECT ON Students FROM Teacher

📌 Think of DCL (सोचिए): Locking or unlocking parts of database (Database के हिस्सों को lock या unlock करना)