(Basic Concepts 01) 데이터베이스 소개
SoloLearn SQL 번역
A Database
데이터베이스
- A
databaseis a collection of data that is organized in a manner that facilitates ease of access, as well as efficient management and updating.데이터베이스는 액세스가 용이하도록 체계적으로 구성된 데이터의 집합이다.- 효율적인 관리 및 업데이트도 가능하다.
- A database is made up of
tablesthat store relevant information.- 데이터베이스는 관련 정보를 저장하는
테이블로 구성된다.
- 데이터베이스는 관련 정보를 저장하는
- For example, you would use a database, if you were to create a web site like YouTube, which contains a lot of information like videos, usernames, passwords, comments.
- 예를 들어, YouTube와 같은 웹 사이트를 생성할 때 데이터베이스를 사용한다.
- 동영상, 사용자 이름, 비밀번호, 댓글과 같은 많은 정보가 포함된다.

Database Tables
데이터베이스 테이블
- A table stores and displays data in a structured format consisting of
columnsandrowsthat are similar to those seen in Excel spreadsheets.- 테이블은
column (행)과row (열)로 이루어진 구조화된 형식으로 데이터를 저장하고 보여준다. - Excel 스프레드시트에서 볼 수 있는 것과 유사하다.
- 테이블은
- Databases often contain multiple tables, each designed for a specific purpose.
- 데이터베이스는 여러 테이블을 포함한다.
- 각각의 테이블은 특정 목적을 위해 설계된다.
- For example, imagine creating a database table of
namesandtelephone numbers.- 예를 들어,
이름과전화번호의 데이터베이스 테이블을 생성해보자.
- 예를 들어,
- First, we would set up columns with the titles FirstName, LastName and TelephoneNumber.
- 먼저 FirstName, LastName, TelephoneNumber라는 제목으로 column을 설정한다.
- Each table includes its own set of fields, based on the data it will store.
- 각 테이블은 저장할 데이터에 따라 고유한 field set을 포함한다.

A table has a specified number of columns but can have any number of rows.
테이블의 column은 지정한 수만큼 가질 수 있지만, row는 얼마든지 가질 수 있다.
Primary Keys
기본 키
- A primary key is a field in the table that uniquely identifies the table records.
- primary key(기본 키)는 테이블 레코드를 고유하게 식별하는 데이블의 field이다.
- The primary key’s main features:
- primary key의 주요 기능은 다음과 같다.
- It must contain a
unique valuefor each row.- 각 row에 대해
고유한 값을 포함해야 한다.
- 각 row에 대해
- It cannot contain
NULLvalues.NULL값을 포함할 수 없다.
- For example, our table contains a record for each name in a phone book.
- 예를 들어, 아래 테이블에는 전화번호부의 각 이름에 대한 레코드가 있다.
- The unique
IDnumber would be a good choice for a primary key in the table, as there is always the chance for more than one person to have the same name.- 고유한
ID번호는 테이블의 primary key에 대한 좋은 선택이 된다. - 둘 이상의 사람이 동일한 이름을 가질 가능성이 있기 때문이다.
- 고유한

Tables are limited to
ONEprimary key each.테이블은 각각
1개의 primary key로 제한된다.
The primary key’s value must be different for each row.
primary key의 값은 각 row마다 달라야 한다.
참고:

What is SQL?
SQL이란 무엇인가?
- Once you understand what a database is, understanding SQL is easy.
- 데이터베이스가 무엇인지 이해하면, SQL을 이해하는 것이 쉽다.
SQLstands forStructuredQueryLanguage.SQL은StructuredQueryLanguage (구조적 질의 언어)의 약자이다.
SQLis used to access and manipulate adatabase.SQL은데이터베이스에 액세스하고 조작하는 데 사용된다.
MySQLis aprogramthat understandsSQL.MySQL은SQL을 이해하는프로그램이다.
- SQL can:
- SQL은 다음과 같은 것을 할 수 있다.
- insert, update, or delete records in a database.
- 데이터베이스의 레코드를 삽입, 업데이트, 삭제할 수 있다.
- create, new databases, table, stored procedures, views.
- 새 데이터베이스, 테이블, 저장 프로시저, 뷰를 생성할 수 있다.
- retrieve data from a database, etc.
- 데이터베이스의 데이터를 검색할 수 있다.
QUIZ
- Which of the following is NOT true about a database?
- 다음 중 데이터베이스에 대한 사실이 아닌 것은 무엇인가?
[ ] A database is a collection of data
[ ] A database is made up of “tables”
[x]
A database is a programming language
- Tables are made up of:
- 테이블은 …로 구성된다.
Columns and rows
- The unique column used to identify the records is called:
- 레코드를 식별하는 데 사용되는 고유한 column을 …라고 한다.
primary key
- What is the name of the language used in creating & accessing databases?
- 데이터베이스를 생성하고 액세스하는 데 사용되는 언어의 이름은 무엇인가?
sql