์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- https://m.blog.naver.com/tt2t2am1118/221010125300
- slow and steady
- async
- webpack
- mysql
- database
- Porject
- setTimeout()
- sql
- ์ฐธ๊ณ ๋ธ๋ก๊ทธ
- ๊ฒ์
- execCommand
- Import
- ajax
- addEventListener
- callback
- ๋น๋๊ธฐ
- await
- eport
- JS #ํ๋ก์ ํธ
- js
- promise
- object
- db
- ํผํ
- json
- https://youtube.com/playlist?list=PLuHgQVnccGMA5836CvWfieEQy0T0ov6Jh&si=FTaYv8m21EhO-A2K
- ๋๊ธฐ
- prj
- Project
- Today
- Total
๋ชฉ๋กDB/๐ฌMySQL (14)
C-log
์ด์ ์ฐ๋ฆฌ๋ TABLES์ ์๋ topic๊ณผ author๋ฅผ ์ฐ๊ฒฐํด ์ค ๊ฒ์ด๋ค. SELECT * FROM topic LEFT JOIN author ON topic.author_id = author.id; MariaDB [opentutorials]> SELECT * FROM topic LEFT JOIN author ON topic.author_id = author.id; +----+------------+-------------------+---------------------+-----------+------+--------+---------------------------+ | id | title | description | created | author_id | id | name | profile | ..
์ฐ๋ฆฌ๊ฐ ๊ด๊ณํ ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๊ธฐ ์ํด์๋ TABLE์ ๋ถ๋ฆฌํด์ผํ๋ค. ๊ทธ๋์ ๊ธฐ์กด์ TABLE์ ๋ช ์นญ์ ๋ณ๊ฒฝํด์ ์๋ก ์ ์ฅํ ๊ฒ์ด๋ค. ์๋ ์ฝ๋๋ฅผ ์ดํด๋ณด์. RENAME TABLE topic TO topic_backup; MariaDB [opentutorials]> RENAME TABLE topic TO topic_backup; Query OK, 0 rows affected (0.018 sec) MariaDB [opentutorials]> SHOW TABLES; +-------------------------+ | Tables_in_opentutorials | +-------------------------+ | topic_backup | +-------------------------+ 1 row in ..
MariaDB [opentutorials]> SELECT * FROM topic; +----+------------+-------------------+---------------------+--------+---------------------------+ | id | title | description | created | author | profile | +----+------------+-------------------+---------------------+--------+---------------------------+ | 1 | MySQL | MySQL is ... | 2023-09-10 15:36:30 | egoing | developer | | 2 | Oracle | Oracle is..
์ฐ๋ฆฌ๊ฐ ์์ฑํด ๋์ database์ table์ ์์ ํ๊ธฐ ์ํด์ ์๋์ ๊ฐ์ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ๋ฉด ๋๋ค. ์ฐ์ ์ฐ๋ฆฌ๊ฐ ๋ณ๊ฒฝํ ๋ฐ์ดํฐ๊ฐ ๋ฌด์์ธ์ง ์๋ ์ฝ๋๋ฅผ ํตํด ํ์ธํด๋ณด์. MariaDB [opentutorials]> SELECT * FROM topic; +----+------------+-------------------+---------------------+--------+---------------------------+ | id | title | description | created | author | profile | +----+------------+-------------------+---------------------+--------+---------------------------+ ..
MySQL์์ SELECT๋ ๊ต์ฅํ ๋ง์ด ์ฌ์ฉ๋๋ ๋ช ๋ น์ด ์ค ํ๋์ด๋ค. ์์ ๋ฐฐ์ด ์ ๋ ฅํ ์ ์ฒด ๋ฐ์ดํฐ๊ฐ์ ๋ณผ ์ ์๋ ๊ฒ ์ธ์๋ ๋ด๊ฐ ํ์ํ ๊ฐ๋ง ๋ณผ ์ ์๊ฒ ์ ํํ ์ ์๋ ๋ช ๋ น์ด ๋ฐฉ์์ ๋ฐฐ์ ๋ณผ ๊ฒ์ด๋ค. ์๋ ์ฝ๋๋ฅผ ์ดํด๋ณด์. SELECT id,created,author FROM topic; MariaDB [opentutorials]> SELECT id,created,author FROM topic; +----+---------------------+--------+ | id | created | author | +----+---------------------+--------+ | 1 | 2023-09-10 15:36:30 | egoing | | 2 | 2023-09-10 15:51:16 | ego..
์ฐ๋ฆฌ๊ฐ ์ง๊ธ๊น์ง ๋ฐฐ์ด ๊ฒ์ผ๋ก SQL์ ์ถฉ๋ถํ ๋ค๋ฃฐ ์ ์๋ค. ๊ทธ๋์ TABLE๋ง ์์ฑํด๋ณด๋ คํ๋ค. ์ฐ์ ๋์๊ฒ ํ์ํ TABLE์ ํ์์ ์ ๋ณด๋ค์ด ๋ด๊ธด TALBEL์ด ํ์ํ๋ค ๊ฐ๊ธฐ ์์ ๋ช ๋ค์ด ์์ด์ผํ๊ณ ์ด๋ฅผ ํ ๋๋ก ํ๊ท ์ ๋ด์ด ์ฃผ๋ ๊ตฌ์กฐ๋ฅผ ๋ง๋ค์ด ๋ด์ผํ๋ค. ์ฐ์ Excelํ์ผ๋ก ๋ด๊ฐ ์๊ฐํ๋ TABLE์ ๋์์ธํด๋ณด๋ ค ํ๋ค. ์๋ ์ด๋ฏธ์ง๋ฅผ ์ฐธ๊ณ ํ์. 1. CREATE DATABASE ๋จผ์ ๋์ DATABASE๋ฅผ ์์ฑํ์ ๊ทธ๋ฆฌ๊ณ ์์ฑ๋ DATABASE๋ฅผ ํ์ธํ์. MariaDB [opentutorials]> CREATE DATABASE grade_card; Query OK, 1 row affected (0.011 sec) MariaDB [opentutorials]> SHOW DATABASES; +------..