> ## Documentation Index
> Fetch the complete documentation index at: https://villagesql.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MySQL 튜토리얼

> Sakila 샘플 데이터베이스를 대상으로 한 번에 한 레슨씩 MySQL을 배웁니다. 각 레슨은 구문, 실습 예제, 그리고 서버가 반환하는 출력을 제공합니다.

이 튜토리얼은 MySQL에서 SQL을 순서대로, 한 번에 한 레슨씩 가르칩니다. 모든 레슨이 같은 샘플 데이터베이스를 조회하므로, 각 레슨은 새 테이블을 만들어 내는 대신 이미 로드한 데이터를 바탕으로 진행됩니다. 표시된 모든 결과는 실행 중인 서버에서 캡처한 출력이므로, 화면을 페이지와 대조해 확인할 수 있습니다.

SQL이 처음이라면 순서대로 읽으세요. 이미 SQL을 쓰고 있고 한 가지 질문에 대한 한 가지 답을 원한다면, MySQL 가이드가 같은 내용을 레슨이 아니라 작업별로 정리해 다룹니다.

## 목차

### 설정

* [서버 설치](https://villagesql.com/docs/ko/tutorial/install-mysql.md)
* [Sakila 샘플 데이터베이스](https://villagesql.com/docs/ko/tutorial/sakila-database.md)
* [Sakila 로드](https://villagesql.com/docs/ko/tutorial/load-sakila.md)

### 데이터 읽기

* [SELECT](https://villagesql.com/docs/ko/tutorial/select.md)
* [열 별칭](https://villagesql.com/docs/ko/tutorial/column-aliases.md)
* [ORDER BY](https://villagesql.com/docs/ko/tutorial/order-by.md)
* [SELECT DISTINCT](https://villagesql.com/docs/ko/tutorial/select-distinct.md)
* [LIMIT](https://villagesql.com/docs/ko/tutorial/limit.md)
* [연산자](https://villagesql.com/docs/ko/tutorial/operators.md)

### 행 거르기

* [WHERE](https://villagesql.com/docs/ko/tutorial/where.md)
* [AND, OR, NOT](https://villagesql.com/docs/ko/tutorial/and-or-not.md)
* [IN](https://villagesql.com/docs/ko/tutorial/in.md)
* [BETWEEN](https://villagesql.com/docs/ko/tutorial/between.md)
* [LIKE](https://villagesql.com/docs/ko/tutorial/like.md)
* [IS NULL](https://villagesql.com/docs/ko/tutorial/is-null.md)
* [REGEXP](https://villagesql.com/docs/ko/tutorial/regexp.md)
* [대소문자 구분](https://villagesql.com/docs/ko/tutorial/case-sensitivity.md)

### 테이블 조인하기

* [조인의 동작 방식](https://villagesql.com/docs/ko/tutorial/joins.md)
* [테이블 별칭](https://villagesql.com/docs/ko/tutorial/table-aliases.md)
* [INNER JOIN](https://villagesql.com/docs/ko/tutorial/inner-join.md)
* [LEFT JOIN](https://villagesql.com/docs/ko/tutorial/left-join.md)
* [RIGHT JOIN](https://villagesql.com/docs/ko/tutorial/right-join.md)
* [CROSS JOIN](https://villagesql.com/docs/ko/tutorial/cross-join.md)
* [셀프 조인](https://villagesql.com/docs/ko/tutorial/self-join.md)

### 그룹화와 집계

* [집계 함수](https://villagesql.com/docs/ko/tutorial/aggregate-functions.md)
* [GROUP BY](https://villagesql.com/docs/ko/tutorial/group-by.md)
* [HAVING](https://villagesql.com/docs/ko/tutorial/having.md)
* [COUNT DISTINCT](https://villagesql.com/docs/ko/tutorial/count-distinct.md)
* [GROUP\_CONCAT](https://villagesql.com/docs/ko/tutorial/group-concat.md)
* [WITH ROLLUP](https://villagesql.com/docs/ko/tutorial/with-rollup.md)

### 쿼리 합치기와 중첩하기

* [UNION](https://villagesql.com/docs/ko/tutorial/union.md)
* [서브쿼리](https://villagesql.com/docs/ko/tutorial/subqueries.md)
* [상관 서브쿼리](https://villagesql.com/docs/ko/tutorial/correlated-subqueries.md)
* [EXISTS](https://villagesql.com/docs/ko/tutorial/exists.md)
* [ANY와 ALL](https://villagesql.com/docs/ko/tutorial/any-all.md)
* [파생 테이블](https://villagesql.com/docs/ko/tutorial/derived-tables.md)
* [공통 테이블 표현식](https://villagesql.com/docs/ko/tutorial/cte.md)
* [재귀 CTE](https://villagesql.com/docs/ko/tutorial/recursive-cte.md)

### 데이터 변경하기

* [INSERT](https://villagesql.com/docs/ko/tutorial/insert.md)
* [여러 행 삽입](https://villagesql.com/docs/ko/tutorial/insert-multiple-rows.md)
* [INSERT SELECT](https://villagesql.com/docs/ko/tutorial/insert-select.md)
* [UPDATE](https://villagesql.com/docs/ko/tutorial/update.md)
* [DELETE](https://villagesql.com/docs/ko/tutorial/delete.md)
* [업서트](https://villagesql.com/docs/ko/tutorial/upsert.md)
* [트랜잭션](https://villagesql.com/docs/ko/tutorial/transactions.md)

## 필요한 것

실행 중인 서버, 거기에 로드된 Sakila 샘플 데이터베이스, 그리고 클라이언트입니다. 설정 섹션이 3가지를 모두 다룹니다.

## VillageSQL의 위치

VillageSQL은 확장 프레임워크가 추가된 MySQL이므로, 이 튜토리얼의 모든 문은 VillageSQL에서 그대로 실행됩니다. 여기 있는 어떤 레슨도 확장을 필요로 하지 않습니다. 튜토리얼을 마치면, 가이드가 확장이 그 위에 더하는 것을 다룹니다.

MySQL is a registered trademark of Oracle and/or its affiliates. Other names
may be trademarks of their respective owners. VillageSQL is not affiliated with
or endorsed by Oracle Corporation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.