SQL (Structured Query Language) is used to store, change, and read data in a database. To make it easy to study, SQL commands are divided into groups. Each group has a simple job, like creating tables, changing data, reading data, handling transactions, or giving permissions.
DDL – Structure DML – Data TCL – Transactions DQL – Queries DCL – Security
Imagine each SQL category as a pillar holding a small “SQL temple”.
CREATE, ALTER, DROP, TRUNCATE, RENAME, COMMENT.INSERT, UPDATE, DELETE, MERGE.COMMIT, ROLLBACK, SAVEPOINT, SET TRANSACTION.SELECT.GRANT, REVOKE.Think of SQL in the center, and each command type as a branch coming out of it.
When you start learning MySQL, many words sound similar and confusing. This table gives a very simple difference between the common terms.
| Term | Simple meaning | Example / Note |
|---|---|---|
| DBMS | Database Management System – any software that stores and manages data. | Very general word. Can be old systems, simple file-based systems, etc. |
| RDBMS | Relational DBMS – data is stored in tables with rows & columns. | MySQL, PostgreSQL, Oracle, SQL Server are all RDBMS. |
| SQL | A language used to talk to a relational database. | Like English for humans, SQL is for databases. SELECT, INSERT are SQL commands. |
| MySQL | A popular RDBMS software that uses SQL language. | Product / tool you install and use. You write SQL inside MySQL. |
| NoSQL | Databases that are not purely table-based. They may store JSON documents, key–value pairs, graphs, etc. | MongoDB (documents), Redis (key–value), Neo4j (graph) are NoSQL databases. |
? In simple words: MySQL is a tool, SQL is the language, RDBMS is the type of system (table-based), DBMS is the general word, and NoSQL is a different family of databases.