Sub:
database_transaction
graph_database
// DB 용어
shard or database_shard
데이터베이스 트랜잭션
transaction
데이터베이스,database에 적용되는 변화,changes들의 한 집합,set. 집합에 포함된 모든 변화들이 적용이 되거나, 아님 안 되어야 함, ....tbw (foldoc)
rel. ACID
데이터베이스_트랜잭션
Database_transaction
Up: 트랜잭션,transaction { Sub: 트랜잭서널메모리,transactional_memory - writing }
database_normalization - writingtransaction
데이터베이스,database에 적용되는 변화,changes들의 한 집합,set. 집합에 포함된 모든 변화들이 적용이 되거나, 아님 안 되어야 함, ....tbw (foldoc)
rel. ACID
atomic atomicity - curr see 원자,atom맨아래
consistent consistency -
isolated isolation - indep. of other transaction(s)
durable durability -
https://foldoc.org/ACID
AtomicConsistentIsolatedDurable
https://foldoc.org/database transactionconsistent consistency -
isolated isolation - indep. of other transaction(s)
durable durability -
https://foldoc.org/ACID
AtomicConsistentIsolatedDurable
데이터베이스_트랜잭션
Database_transaction
Up: 트랜잭션,transaction { Sub: 트랜잭서널메모리,transactional_memory - writing }
graph_database
// DB 용어
shard or database_shard
Contents
1. DB ¶
데이터베이스란 관련된 데이터의 묶음. 데이터는 기록될 수 있고 의미가 있는 사실들.
A database is a collection of related data, where data means facts that can be recorded and that have implicit meaning. (Elmasri)
A database is a collection of related data, where data means facts that can be recorded and that have implicit meaning. (Elmasri)
3. DBMS ¶
DBMS,database_management_system
{
A database management system (DBMS) is a computerized system that enables users to create and maintain a database. The DBMS is a general-purpose software system that facilitates the process of defining, constructing, manipulating, and sharing databases among various users and applications. (Elmasri)
}
{
A database management system (DBMS) is a computerized system that enables users to create and maintain a database. The DBMS is a general-purpose software system that facilitates the process of defining, constructing, manipulating, and sharing databases among various users and applications. (Elmasri)
}
네트워크 DBMS | DB를 그래프 형태로 구성 |
계층 DBMS | DB를 트리 형태로 구성 |
관계 DBMS | DB를 테이블 형태로 구성 |
객체지향 DBMS | 객체를 이용해 DB 구성 |
객체관계 DBMS | 객체 DBMS + 관계 DBMS |
https://foldoc.org/database management system
8.1. DDL Data Definition Language 데이터정의어 ¶
스키마를 정의
CREATE TABLE 테이블 생성
ALTER TABLE 테이블 변경
DROP TABLE 테이블 삭제
CREATE INDEX 데이터 접근을 위해 특정 애트리뷰트 위에 인덱스를 정의
ALTER TABLE 테이블 변경
DROP TABLE 테이블 삭제
CREATE INDEX 데이터 접근을 위해 특정 애트리뷰트 위에 인덱스를 정의
8.2. DML Data Manipulation language 데이터조작어 ¶
검색/수정/삽입/삭제 + SUM, COUNT, AVG등의 내장함수
INSERT 데이터 삽입
UPDATE 데이터 수정
DELETE 데이터 삭제
SELECT 데이터 검색
UPDATE 데이터 수정
DELETE 데이터 삭제
SELECT 데이터 검색
9. ER ¶
aka 개체-관계 모델, 엔티티-관계 모델
개체(entity) - 독립된 정보
관계(relationship) - 개체들 사이의 관련성 정보
db는 독립적인 개체와 그들 사이의 관계로 구성?
관계(relationship) - 개체들 사이의 관련성 정보
db는 독립적인 개체와 그들 사이의 관계로 구성?
10.1. week 2 1 ¶
1970년대 관계형 DB 나타남.
뭔가를 위해 과거의 데이터를 모아놓은 것 - data warehouse 개념
뭔가를 위해 과거의 데이터를 모아놓은 것 - data warehouse 개념
traditional | text(ual) and numeric (항상 둘 중 하나) |
new face | multimedia, GIS, image/audio, ... |
Sample Company database
EMPLOYEE table에서, SUPERSSN은 자기 상사의 SSN을 뜻함.
PROJECT table에서, DNO, DNUM(BER)는 어느 부서에서 프로젝트를 주관하고 있는지
"find employees whose salary > 40000"PROJECT table에서, DNO, DNUM(BER)는 어느 부서에서 프로젝트를 주관하고 있는지
In SQL(standard query language for RDB):
select * from employee where salary > 40000