😀 Language/- SQL

[MySQL] sakila 샘플 DB로 SQL 연습 - 0. 데이터 준비

또방91 2022. 7. 7. 14:19
728x90

 

 

 

 

[MySQL] sakila 샘플 DB로 SQL 연습하기

- 0. 데이터 준비

 

 

 

 

 

🌹 DB 살펴보기

샘플 데이터베이스를 제공되는 sakila 의 EER diagram은 요렇게 생겼당... ㅋ
조금 복잡해보이지만, 잊어버린 SQL 문법을 떠올리기 위해

너무 좋은 예제가 아닐 수 없다🤗

sakila 데이터베이스에 대한 설명은 아래pdf를 클릭하면 자세히 알 수 있다.

https://downloads.mysql.com/docs/sakila-en.pdf

 

 

🌹 데이터 다운받기

1. MySQL 공홈에서 제공하는 example database 페이지로 들어간다.

https://dev.mysql.com/doc/index-other.html

 

MySQL :: Other MySQL Documentation

Other MySQL Documentation This page provides additional documentation. There's even more available on these extra pages: MySQL Server Doxygen Documentation Title HTML Online MySQL Server (latest version) View Expert Guides Language Title Version HTML Onlin

dev.mysql.com

 

2. sakila 데이터베이스의 zip을 다운받는다.

 

3. 압축풀기를 하면 있는 sakila-schema.sql 파일 & sakila-data.sql 파일을 워크밴치에 불러옵니당

sakila 데이터베이스를 불러오는 건 아니지만, 아래 블로그 글을 참고하면 충분히 잘 불러올수 있을 거당!

: https://dasima.xyz/mysql-workbench-sample-database-load/

 

 

 

 

728x90