[DB 01] Database란?

오라클 공식 홈페이지에서는 Database를 다음과 같이 정의하고 있다.

A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just database.

Data within the most common types of databases in operation today is typically modeled in rows and columns in a series of tables to make processing and data querying efficient. The data can then be easily accessed, managed, modified, updated, controlled, and organized. Most databases use structured query language (SQL) for writing and querying data.
 

What is a database?

Learn everything you need to know about database and how it can help your business.

www.oracle.com

 

즉, Database란 컴퓨터 시스템에 저장되는 구조화된 데이터의 집합이라고 볼 수 있다.

 

데이터 베이스는 다음과 같은 특징을 가지고 있다.

  • 데이터베이스 관리 시스템, DBMS(DataBase Management System)에 의해 컨트롤된다.
  • Database System : data + DBMS + 관련 Applications 묶은 것 -> 그냥 Database라고 부르기도 함.
  • 대부분의 데이터베이스는 SQL(Structured Query Language)을 사용하여 데이터를 작성하고 조회/수정/삭제한다.

 

DBMS

  • 사용자가 DB를 만들고 관리할 수 있는 소프트웨어 프로그램
  • 종류
    • RDBMS(Relational Database Management System)
      • Oracle Database, MySQL, Mycrosoft의 SQL Server
    • ORDBMS(Object-Relational Database Management System)
      • PostgreSQL
    • NoSQL database(No SQL, Not only SQL, nonrelational database )
      • MongoDB, HBase 등

 

MySQL

MySQL is an open source relational database management system based on SQL. It was designed and optimized for web applications and can run on any platform. As new and different requirements emerged with the internet, MySQL became the platform of choice for web developers and web-based applications. Because it’s designed to process millions of queries and thousands of transactions, MySQL is a popular choice for ecommerce businesses that need to manage multiple money transfers. On-demand flexibility is the primary feature of MySQL.
MySQL is the DBMS behind some of the top websites and web-based applications in the world, including Airbnb, Uber, LinkedIn, Facebook, Twitter, and YouTube.
 

What is a database?

Learn everything you need to know about database and how it can help your business.

www.oracle.com

  • SQL을 기반으로 하는 오픈 소스 관계형 데이터베이스 관리 시스템
  • 웹 애플리케이션용으로 설계 및 최적화되었으며 모든 플랫폼에서 실행할 수 있다.
  • 인터넷과 함께 새롭고 다양한 요구사항이 등장하면서 MySQL은 웹 개발자와 웹 기반 애플리케이션이 선택하는 플랫폼이 되었다.
  • 에어비앤비, Uber, 링크드인, 페이스북, 트위터, 유튜브에서 사용하는 DBMS이다.

 

Database Language

  • DDL(Data Definition Language)
    • 데이터베이스 구조를 정의, 수정, 삭제하는 언어
    • create, alter, drop, truncate
  • DML(Data Manipulation Language)
    • 데이터베이스 내의 데이터 검색, 삽입, 갱신, 삭제를 위한 언어
    • select, insert, delete, update
  • DCL(Data Control Language)
    • 데이터베이스에 접근하거나 객체에 권한지정하는 언어
    • 데이터를 제어하는 언어이고
    • 데이터의 보안, 무결성, 회복 등을 정의하는 데 사용
    • grant, revoke, commit, rollback

 

Schema(스키마)

  • 데이터베이스의 전체적인 구조와 제약조건에 대한 기술 정의

 

무결성

  • 개체 무결성: 기본키는 Null값이 올 수 없으며, 중복될 수 없다.
  • 참조 무결성: 외래키는 Null값이 올 수 있으며, 부모 테이블의 기본키에 종속되어야 한다.
  • 도메인 무결성, 고유 무결성, null무결성, 키 무결성

 

'CS > DB' 카테고리의 다른 글

[DB 02] Table 구성  (0) 2023.06.15