惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
D
DataBreaches.Net
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
腾讯CDC
博客园_首页
The Cloudflare Blog
S
SegmentFault 最新的问题
C
Check Point Blog
美团技术团队
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Introduction to SQL: Database, DBMS, RDBMS, and types of ...
Harini · 2026-06-17 · via DEV Community
Cover image for Introduction to SQL: Database, DBMS, RDBMS, and types of SQL Commands

Harini

What is SQL?

SQL (Structured Query Language) is a standard language used to communicate with databases. It helps us store, retrieve, update, and delete data from a database.

In simple terms, SQL is the language that allows applications to interact with data.

What is a Database?

A Database is an organized collection of related data stored electronically.

Instead of storing information in files, databases store data in a structured manner for easy access and management.

What is DBMS?
DBMS (Database Management System)

A DBMS is software that allows users to create, manage, and manipulate databases.

It acts as an interface between the user and the database.

Responsibilities of DBMS

  • Data storage
  • Data retrieval
  • Data security
  • Backup and recovery
  • Data management

Limitations of DBMS

Traditional DBMS has some drawbacks:

  • Data redundancy (duplicate data)
  • Data inconsistency
  • Difficult relationships between data
  • Poor scalability
  • Limited multi-user support

To overcome these issues, RDBMS was introduced.

What is RDBMS?

RDBMS (Relational Database Management System) is a type of DBMS that stores data in the form of tables (relations). These tables are connected to each other using relationships.

Advantages of RDBMS
1. Reduced Data Redundancy

Data is stored only once.

2. Data Integrity

Ensures data accuracy.

3. Data Security

Provides user permissions and access control.

4. Multi-User Support

Multiple users can access data simultaneously.

5. Better Relationships

Tables can be linked using keys.

Types of SQL Commands
1. DDL (Data Definition Language)

DDL commands are used to create, modify, and delete the structure of database objects such as tables, views, and indexes.

Commands

  • CREATE – Creates a new database object such as a table, view, or database.

  • ALTER – Modifies the structure of an existing database object.

  • DROP – Permanently deletes a database object and its data.

  • TRUNCATE – Removes all records from a table while keeping the table structure intact.

2. DML (Data Manipulation Language)
DML commands are used to insert, update, and delete data stored in database tables.

Commands

  • INSERT – Adds new records into a table.

  • UPDATE – Modifies existing records in a table.

  • DELETE – Removes one or more records from a table.

3. DQL (Data Query Language)
DQL commands are used to retrieve and display data from database tables.

Commands

  • SELECT – Retrieves data from one or more tables based on specified conditions.

4. DCL (Data Control Language)
DCL commands are used to control user access and permissions on database objects.

Commands

  • GRANT – Provides specific privileges or permissions to a user.

  • REVOKE – Removes previously granted privileges from a user.

5. TCL (Transaction Control Language)
TCL commands are used to manage and control transactions in a database.

Commands

  • COMMIT – Permanently saves all changes made during the current transaction.

  • ROLLBACK – Undoes changes made during the current transaction and restores the previous state.

  • SAVEPOINT – Creates a checkpoint within a transaction that can be rolled back to later.