๐Ÿ˜Ž Today I Learned

๐Ÿ˜Ž Today I Learned

[TIL] 22.02.08

CSS Position: static, absolute, fixed, relative z-index : ์‹ฌ๋„ ์œ„์น˜, ์ˆซ์ž๊ฐ€ ํด์ˆ˜๋ก ์•ž์œผ๋กœ ๋‚˜์˜ค๊ณ  ์ž‘์„ ์ˆ˜๋ก ๋’ค๋กœ ๊ฐ float : left, right, clear : both(left, right) box-sizing : content-box, border-box overflow : hidden, auto, scroll Flex 1. Container 1) display : flex(inline-flex) 2) flex-direction 3) flex-wrap 4) justify-content 5) align-items 6) align-content selector : *, ํƒœ๊ทธ๋ช…, #id๋ช…, .ํด๋ž˜์Šค๋ช…, ์„ ํƒ์žA>์„ ํƒ์ž B, ์„ ํƒ์žA ์„ ํƒ์žB ๊ฐ€์ƒ ํด๋ž˜..

๐Ÿ˜Ž Today I Learned

[TIL] 22.02.07

HTML ๊ทธ๋ฃนํƒœ๊ทธ - div - span List 1. ์ˆœ์„œ๊ฐ€ ์žˆ๋Š” ๋ฆฌ์ŠคํŠธ 2. ์ˆœ์„œ๊ฐ€ ์—†๋Š” ๋ฆฌ์ŠคํŠธ Semantic CSS background Reset.css

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.28

Data Modeling 1. ๋ชจ๋ธ๋ง ์ˆœ์„œ 1) ์š”๊ตฌ์‚ฌํ•ญ ๋ถ„์„ 2) ๊ฐœ๋…์  ๋ชจ๋ธ๋ง 3) ๋…ผ๋ฆฌ์  ๋ชจ๋ธ๋ง 4) ๋ฌผ๋ฆฌ์  ๋ชจ๋ธ๋ง

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.27

Database ์ œ์•ฝ ์กฐ๊ฑด ์™ธ๋ž˜ํ‚ค(Foreign Key) : ๋‹ค๋ฅธ ๋ฆด๋ ˆ์ด์…˜(Table)๊ณผ ์ฐธ์กฐ ๊ด€๊ณ„๋ฅผ ๋งบ์„ ๋•Œ ์‚ฌ์šฉ a. ์ž์‹์˜ Tuple(Row)๋„ ๊ฐ™์ด ์‚ญ์ œ : ON DELETE CASCADE b. ์ž์‹์˜ Attribute(Column)์— NULL : ON DELETE SET NULL TABLE ์ˆ˜์ • ์ปฌ๋Ÿผ ์ถ”๊ฐ€ : ALTER TABLE ํ…Œ์ด๋ธ”๋ช… ADD (Column๋ช… DataType) ์ปฌ๋Ÿผ ์‚ญ์ œ : ALTER TABLE ํ…Œ์ด๋ธ”๋ช… DROP COLUMN Column๋ช… ์ปฌ๋Ÿผ ์ด๋ฆ„ ๋ณ€๊ฒฝ : ALTER TABLE ํ…Œ์ด๋ธ”๋ช… RENAME COLUMN ๊ธฐ์กดColumn๋ช… To ์ƒˆ๋กœ์šดColumn๋ช… ์ปฌ๋Ÿผ ๋ฐ์ดํ„ฐํƒ€์ž… ๋ณ€๊ฒฝ : ALTER TABLE ํ…Œ์ด๋ธ”๋ช… MODIFY (Column๋ช… DataType) ํ…Œ์ด๋ธ”์˜ ์ด๋ฆ„์„ ๋ณ€๊ฒฝ..

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.26

DDL CREATE DROP ALTER

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.25

Database DML : INSERT, UPDATE, DELETE MVC ๋””์ž์ธํŒจํ„ด JDBC - region ์ถ”๊ฐ€ Department ์— insert, delete ์ถ”๊ฐ€ - INSERT INTO ํ…Œ์ด๋ธ”๋ช… (์ปฌ๋Ÿผ๋ช…1, ์ปฌ๋Ÿผ๋ช…2, ...) VALUES (๊ฐ’1, ๊ฐ’2, ...) - INSERT INTO ํ…Œ์ด๋ธ”๋ช… VALUES (๊ฐ’1, ๊ฐ’2, ...) - UPDATE ํ…Œ์ด๋ธ”๋ช… SET ์ˆ˜์ •ํ•  ์ปฌ๋Ÿผ๋ช…1 = ์ˆ˜์ •ํ•  ๊ฐ’1, ์ˆ˜์ •ํ•  ์ปฌ๋Ÿผ๋ช…2 = ์ˆ˜์ •ํ•  ๊ฐ’2, ... : ํ…Œ์ด๋ธ”์˜ ๋ชจ๋“  ROW๊ฐ€ ์ˆ˜์ • - UPDATE ํ…Œ์ด๋ธ”๋ช… SET ์ˆ˜์ •ํ•  ์ปฌ๋Ÿผ๋ช…1 = ์ˆ˜์ •ํ•  ๊ฐ’1, ์ˆ˜์ •ํ•  ์ปฌ๋Ÿผ๋ช…2 = ์ˆ˜์ •ํ•  ๊ฐ’2, ... WHERE ์กฐ๊ฑด์‹ : ํŠน์ •ํ•œ ROW๋ฅผ ์ˆ˜์ • - DELETE ..

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.24

Database Join : ํ•œ ๋ฒˆ์˜ ์ฟผ๋ฆฌ๋ฌธ์œผ๋กœ ์—ฌ๋Ÿฌ๊ฐœ์˜ ํ…Œ์ด๋ธ”์˜ ์ปฌ๋Ÿผ๋“ค์„ ํ•œ๋ฒˆ์— ์กฐํšŒ SELECT FROM ํ…Œ์ด๋ธ”๋ช… A {INNER, LEFT || RIGHT || FULL OUTER, NATURAL} JOIN ON (A.์ปฌ๋Ÿผ๋ช… = B.์ปฌ๋Ÿผ๋ช…) || USING(์ปฌ๋Ÿผ๋ช…) {INNER, LEFT || RIGHT || FULL OUTER, NATURAL} JOIN ํ…Œ์ด๋ธ”๋ช… C ON (A.์ปฌ๋Ÿผ๋ช… = B.์ปฌ๋Ÿผ๋ช…) || USING(์ปฌ๋Ÿผ๋ช…) WHERE ... GROUP BY ... HAVING ... ORDER BY ... - Inner Join : ์กฐ์ธ ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ์ปฌ๋Ÿผ ๊ธฐ์ค€ ์กฐํšŒ - Outer Join : ์กฐ์ธ ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜์ง€ ์•Š๋”๋ผ๋„ ์กฐํšŒ ํ•˜๊ณ ์ž ํ•˜๋Š” ๊ฒฝ์šฐ, Left Right Full DDL ์ œ์•ฝ์กฐ๊ฑด :..

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.21

Database Function ๊ทธ๋ฃนํ•จ์ˆ˜ : SUM, AVG, COUNT, MAX, MIN ๋‹จ์ผํ•จ์ˆ˜ : NVL, NVL2 HAVING GROUP BY SubQuery ๋‹จ์ผํ–‰ ์„œ๋ธŒ์ฟผ๋ฆฌ ๋‹ค์ค‘ํ–‰ ์„œ๋ธŒ์ฟผ๋ฆฌ : IN, NOT IN, ALL, ANY, EXISTS ์ฃผ๋ง์— ํ•  ์ผ ์„œ๋ธŒ์ฟผ๋ฆฌ ์˜ˆ์ œ LocationController, EmployeeController ์ƒ์„ฑ FrontController ์™„์„ฑํ•˜๊ธฐ

๐Ÿ˜Ž Today I Learned

[TIL] 22.01.20

Database * SELECT - WHERE 1) ๋น„๊ต์—ฐ์‚ฐ์ž 2) ๋…ผ๋ฆฌ์—ฐ์‚ฐ์ž : and, or 3) NULL 4) BETWEEN (AND) 5) IN (OR) 6) LIKE : ํŠน์ • ๋ฌธ์ž์—ด์— ์ผ์น˜ํ•˜๋Š” ๋ฐ์ดํ„ฐ ์กฐํšŒ - _, % 7) ORDER BY - ASC(์˜ค๋ฆ„์ฐจ์ˆœ), DESC(๋‚ด๋ฆผ์ฐจ์ˆœ) JDBC * DAO //1. DB ์—ฐ๊ฒฐ String username = ""; String password = ""; String url = ""; String driver = ""; //2. driver๋ฅผ ๋ฉ”๋ชจ๋ฆฌ์— ๋กœ๋”ฉ Class.forName(driver); //3. DB ์—ฐ๊ฒฐ Connection con = DriverManager.getConnection(url, username, password); //4. Q..

soozkim
'๐Ÿ˜Ž Today I Learned' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (3 Page)