[SQL ์ ๋ฌธ๊ฐ] ๊ณผ๋ชฉII. ์ 3์ฅ ๊ด๋ฆฌ ๊ตฌ๋ฌธ
๊ณผ๋ชฉ II. SQL ๊ธฐ๋ณธ๊ณผ ํ์ฉ ๐์ 3์ฅ ๊ด๋ฆฌ ๊ตฌ๋ฌธ ์ 1์ DML (๋ฐ์ดํฐ ์
๋ ฅโ์์ โ์ญ์ ) ์ 2์ TCL (๋ณ๊ฒฝ๋ ๋ฐ์ดํฐ ๋ฐ์โ์ทจ์) ์ 3์ DDL (ํ
์ด๋ธ ๊ตฌ์กฐ ์์ฑโ๋ณ๊ฒฝโ์ญ์ ) ์ 4์ DCL (๋ฐ์ดํฐ ๊ถํ ๋ถ์ฌโํ์) ์ฅ ์์ฝ ์ฐ์ต๋ฌธ์ โจ์ 1์ DML 1. INSERT โพ๏ธ๋จ์ผ ํ INSERT ๋ฌธ์ VALUES ์ ์ ํฌํจํ๋ฉฐ, ํ ๋ฒ์ ํ ํ๋ง ์
๋ ฅ๋๋ค. INSERT INTO ํ
์ด๋ธ๋ช
[(์นผ๋ผ1, ์นผ๋ผ2, ...)] VALUES (๊ฐ1, ๊ฐ2, ...); โพ๏ธ์๋ธ ์ฟผ๋ฆฌ๋ฅผ ์ด์ฉํ ๋ค์ค ํ INSERT ๋ฌธ INSERT INTO ํ
์ด๋ธ๋ช
[(์นผ๋ผ1, ์นผ๋ผ2, ...)] ์๋ธ ์ฟผ๋ฆฌ; -- [์์ ] INSERT INTO TEAM (TEAM_ID, REGION_NAME, TEAM_NAME, ORIG_YYYY,..
2022. 4. 21.
[LeetCode] 35. Search Insert Position
35. Search Insert Position Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2 Example 2: Input: nums = [1,3,5,6], target = 2 Output: 1 Example 3: Input: n..
2022. 4. 20.