SQL(3)
-
Understanding Database - SQL ๊ธฐ์ด ์ด์ ๋ฆฌ
SQL vs NoSQL SQL์ ํ ์ด๋ธ ํ์, NoSQL์ ์ ํํ๋์ง ์์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์. SQL์ ๊ธฐ๋ณธ ๊ฐ๋ ์ธ ํ ์ด๋ธ, ๊ด๊ณ์ ๊ฐ๋ ์ NoSQL์์๋ ์ฝ๋ ์ , ๊ทธ๋ฆฌ๊ณ ์ฐธ์กฐ ํน์ ๋ด์ฅํ์ ๊ฐ๋ ์ ๋๋ก ์๊ฐํ ์ ์๊ฒ ๋ค. SQL์ ์ ํํ๋์ด ์์ด์ ๋จธ๋ฆฟ์์ ์ฌ์ค ๊ตฌ๋๋ฅผ ๊ทธ๋ฆฌ๋ ๊ฒ์ด ์๋์ ์ผ๋ก ํธํ๋ค. ๋ฐ๋ฉด, NoSQL์ ๊ตฌ์กฐ๊ฐ ์ ํํ๋์ด ์์ง ์์์ ๋จธ๋ฆฟ์์ ๊ตฌ์กฐ๋ฅผ ๋ช ํํ๊ฒ ๊ทธ๋ฆฌ๊ธฐ๊ฐ ์ฒ์์ ์ฝ์ง ์๋ค. ํ์ง๋ง ๊ทธ๋ก ์ธํ ์ฅ์ ์ ํ์ฅ์ฑ์ ์๋ค๊ณ ํ ์ ์๊ฒ ๋ค. ์๋ฅผ ๋ค์ด SQL์์๋ ๋ฐ์ดํฐ๋ฅผ ์ ํด์ง ํ ์ด๋ธ์ ํํ ์์ ๋ฃ์ด์ผ๋ง ํ์ง๋ง NoSQL์์๋ ๊ทธ๋ฐ ๋ถ๋ถ์ ์ ์ฝ์กฐ๊ฑด์ผ๋ก ์ถ๊ฐํ๊ฑฐ๋ ํน์ ์ ์ฝ ์กฐ๊ฑด ์์ด ๋ค์ํ ํํ์ ๋ฐ์ดํฐ๋ฅผ ํ๋์ ์ฝ๋ ์ (SQL๋ก ์น๋ฉด ํ๋์ ํ ์ด๋ธ)์ ๋ชฝ๋ ๊ทธ๋ฆฌ ์ ์ฅํ ์ ์๋ค๋ ์ฅ..
2023.01.23 -
Understanding Database 5 - Advanced SQL Queries (Stored Procedure, Trigger, Views)
Stored Procedure : Define your commands to run several queries by calling one procedure. You can use the conditional command, and it allows you to run the queries depending on what you get. The statement starts with DELIMITER / and finishes with DELIMITER ; Trigger This allows the DBMS to run some query every time a certain query runs. For instance, if you want to update the record of visiting, ..
2023.01.15 -
Understanding Database 1 - Database
SQL์ ๊ธฐ๋ณธ ํ ์ด๋ธ ํ์์ผ๋ก ๋์ด ์์ด ์ดํดํ๊ธฐ๊ฐ ์ฝ๋ค. ์ถํ์ NoSQL๋ฅผ ์ ๋ฆฌํ ํ ์ง๋ง, NoSQL์ ์ ํํ๋์ด ์์ง ์์ ์ฒ์ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ค๊ณ์ ์ ๋ฅผ ๋ง์ด ๋จน์๋ค. ์ด ์๋ฃ๋ ๋ํ์ ์์ฌ๊ณผ์ ์์ ๋ด์ฉ์ ์์ฝํ ๋ด์ฉ์ ๋๋ค. What is a database?: Precisely know what the database means and is worth. : A structured collection of meaningful data. Timeline of Databases 1970-1960: in-company applications - SQL, COBOL, usually per-company, no standardisation, data access slow(Data was stored in t..
2023.01.15