๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์ด๋ ๋ฐ์ดํฐ ๊ด๋ฆฌ์ ์กฐ์์ ์ฒด๊ณ์ ์ด๊ณ ํจ์จ์ ์ผ๋ก ์ํํ๊ธฐ ์ํ ๋๊ตฌ๋ก ์ฌ์ฉ๋๋ฉฐ, ์ด๋ก ์ธํด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ์ง๋ณด์, ํ์ฅ, ๋ณด์ ๋ฑ ๋ค์ํ ์ธก๋ฉด์์ ์ด์ ์ ์ ๊ณตํฉ๋๋ค.
๋ฐ์ดํฐ๋ฒ ์ด์ค ์ธ์ด๋ DDL๊ณผ DML๋ก ๋๋์ด์ ธ ์์ต๋๋ค. DDL์ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ๊ตฌ์กฐ๋ฅผ ์ ์ํ๊ณ ๋ณ๊ฒฝํ๋ ๋ฐ ์ฌ์ฉ๋๋ฉฐ, DML์ ๋ฐ์ดํฐ๋ฅผ ๊ฒ์ํ๊ณ ์กฐ์ํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค. ์ด๋ ๊ฒ ๋ถ๋ฆฌํจ์ผ๋ก์จ ๊ตฌ์กฐ์ ๋ฐ์ดํฐ ์กฐ์ ๊ฐ์ ๋ช ํํ ๊ตฌ๋ถ์ด ๊ฐ๋ฅํด์ง๋ฉฐ, ์ ์ง๋ณด์ ๋ฐ ๋ฐ์ดํฐ ๊ด๋ฆฌ๊ฐ ์ฉ์ดํด์ง๋๋ค.
1) DDL (๋ฐ์ดํฐ ์ ์ ์ธ์ด): ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ตฌ์กฐ๋ฅผ ์ ์ํ๊ฑฐ๋ ์์ ํ๋ ๋ฐ ์ฌ์ฉ
- ์ฃผ์ ๋ช ๋ น์ด: CREATE, ALTER, DROP, TRUNCATE
2) DML (๋ฐ์ดํฐ ์กฐ์ ์ธ์ด): ๋ฐ์ดํฐ๋ฅผ ์กฐํ, ์ฝ์ , ์์ , ์ญ์ ํ๋ ๋ฐ ์ฌ์ฉ
- ์ฃผ์ ๋ช ๋ น์ด: SELECT , INSERT, UPDATE, DELETE
3) SQL (Structured Query Language): DDL ๋ฐ DML ๋ช ๋ น์ ์คํํ๊ธฐ ์ํ ํ์คํ๋ ์ธ์ด
SQL(Structured Query Language)์ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๊ด๋ฆฌ ์์คํ (RDBMS)์์ ์ฌ์ฉ๋๋ ํ์ค ์ง์ ์ธ์ด์ ๋๋ค.
๊ทธ๋ฌ๋ ๊ฐ RDBMS๋ง๋ค ์กฐ๊ธ์ฉ ๋ค๋ฅธ ๋ฌธ๋ฒ์ด๋ ๊ธฐ๋ฅ์ ๊ฐ์ง ์ ์์ต๋๋ค. ์ด๋ก ์ธํด ํน์ RDBMS์ ๋ง๊ฒ ์์ฑ๋ SQL ๋ฌธ์ด ๋ค๋ฅธ RDBMS์์ ๋์ผํ๊ฒ ๋์ํ์ง ์์ ์ ์์ต๋๋ค.
DML (Data Manipulation Language): DML is a subset of SQL that focuses on manipulating data stored in a database. It includes operations such as SELECT for querying data, and INSERT, UPDATE, and DELETE for modifying data.
DDL (Data Definition Language): DDL is a part of SQL responsible for defining and managing the structure of a database. It includes commands like CREATE for creating database objects, ALTER for modifying them, and DROP for deleting them.
SQL (Structured Query Language): SQL is a standardized programming language designed for managing and manipulating relational databases. It includes both DDL and DML commands, allowing users to define and interact with the structure and data within a database.
'Computer Science > Database' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
6 Create(Insert), Update, Delete (1) | 2024.01.11 |
---|---|
5 CRUD (Create, Read, Update and Delete) + Practice tables (0) | 2024.01.08 |
3 Relational Database (feat. key, constraints) (1) | 2023.12.23 |
2 Data Model (0) | 2023.12.22 |
1 Data, Database, DBMS (0) | 2023.12.22 |
๋๊ธ