데이터 언어는 데이터베이스를 구축하고 이용하기 위한
데이터베이스 관리 시스템과의 통신 수단이다.
DDL(정의어, Data Define Language)
: 데이터베이스의 구조, 데이터 형식, 접근 방식 등 DB를 구축하거나 수정할 목적으로 사용되는 언어
1. CREATE - 스키마, 도메인, 테이블, VIEW, INDEX 등의 개체를 정의하는 데 사용하는 명령어
2. ALTER - 개체에 대한 정의를 변경하는데 사용하는 명령어
3.DROP - 스키마, 도메인, 테이블 등의 개체를 삭제하는데 사용하는 명령어
DML(조작어, Data Manipulation Language)
: 데이터베이스 사용자가 저장된 데이터를 실질적으로 관리하는데 사용되는 언어
1. SELECT - 테이블에서 튜플을 검색함
2. INSERT - 테이블에 새로운 튜플을 삽입함
3. UPDATE - 테이블에서 튜플의 내용을갱신함
4. DELETE - 테이블에서 튜플을 삭제함
* 튜플 = row
DCL(제어어, Data Control Language)
: 보안 및 무결성, 병행제어
1. COMMIT - 명령에 의해 수행된 결과를 실제 물리적 디스크로 저장하고,
데이터베이스 조작 작업이 정상적으로 완료되었음을 관리자에게 알려줌
2. ROLLBACK - 데이터베이스 조작 작업이 비정상적으로 종료되었을 때 원래의 상태로 복구함
3. GRANT - 데이터베이스 사용자에게 사용 권한을 부여함
4. REVOKE - 데이터베이스 사용자에게 사용 권한을 취소함
'IT > CS' 카테고리의 다른 글
[3801300] TCP/IP (0) | 2023.04.15 |
---|---|
[3800900] 트랜잭션 CRUD분석 (0) | 2023.04.13 |
[3800300] 스케줄링 (1) | 2023.04.12 |
[1550320] 응용 계층 (0) | 2023.04.12 |
[1550319 데이터베이스] - 관련용어 (스택,큐, 정규화, 후보키, 대체키, 무결성, 유일성, 최소성 등) (0) | 2023.04.12 |