MySQL + SQL · Lesson 1

Database का परिचय

Database क्या है?

Database related data का एक organized collection है जो electronically store होता है ताकि इसे आसानी से access, manage और update किया जा सके। जो software database को control करता है उसे DBMS (Database Management System) कहते हैं — जैसे MySQL, Oracle, PostgreSQL या MS Access.

Paper registers या बिखरी हुई Excel files की जगह, एक school अपने records database में रखता है जहाँ हर record rows और columns में structured होता है।

Database के Basic Parts

TermमतलबExample
Tablerelated rows का collectionstudents table
Row (Record)एक पूरा entryएक student की details
Column (Field)data का एक attributename, marks
Primary Keyrow की unique पहचानroll_no

एक आसान Example

CREATE DATABASE school;
USE school;
CREATE TABLE students (
  roll_no INT PRIMARY KEY,
  name    VARCHAR(60),
  marks   INT
);
INSERT INTO students VALUES (1, 'Aman', 88);
अब "school" database में "students" table है जिसमें एक record है।

Databases के प्रकार

  • Relational (RDBMS): data tables में relationships के साथ — MySQL, Oracle.
  • NoSQL: document/key-value stores — MongoDB, Redis.
  • Hierarchical & Network: पुराने tree/graph based models.

Databases कहाँ Use होते हैं

Schools
Students, fees, results, attendance
Banks
Accounts, transactions, loans
E-commerce
Products, orders, customers
Hospitals
Patients, doctors, appointments

सामान्य गलतियाँ

  • database (data) और DBMS (software) को confuse करना।
  • एक Excel sheet को database समझना — उसमें relationships और rules नहीं होते।

सारांश

  • Database related data का organized collection है।
  • DBMS वह software है जो इसे manage करता है (जैसे MySQL)।
  • Data tables में rows और columns के रूप में रहता है।
  • हर जगह use होता है: schools, banks, hospitals, online shopping।
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

💻 लाइव कोड एडिटर

इस पेज के प्रोग्राम यहीं तैयार हैं — चलाएँ, बदलें और सीखें। कुछ भी इंस्टॉल किए बिना।
OneCompiler द्वारा संचालित। कोड एडिटर में अपने आप आ जाता है — Run दबाकर आउटपुट देखें। अगर एडिटर न खुले तो नए टैब में खोलें.