๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ282

[SQL ์ „๋ฌธ๊ฐ€] ๊ณผ๋ชฉII. ์ œ3์žฅ ๊ด€๋ฆฌ ๊ตฌ๋ฌธ - ์—ฐ์Šต๋ฌธ์ œ (์ด 7๋ฌธ์ œ) ๐Ÿ“–๊ณผ๋ชฉII. ์ œ3์žฅ ๊ด€๋ฆฌ ๊ตฌ๋ฌธ - ์—ฐ์Šต๋ฌธ์ œ (์ด 7๋ฌธ์ œ) ๋ฌธ์ œ 1. ๋ฐ์ดํ„ฐ๋ฅผ ์ž…๋ ฅํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” SQL ๋ช…๋ น์–ด๋Š” ๋ฌด์—‡์ธ๊ฐ€? 1) CREATE 2) UPDATE 3) INSERT 4) ALTER ๋ฌธ์ œ 2. ๋ฐ์ดํ„ฐ์˜ ์ž…๋ ฅ ๋ฐ ์ˆ˜์ • ์ž‘์—…์„ ํ•œ ๋ฒˆ์— ํ•  ์ˆ˜ ์žˆ๋Š” SQL ๋ช…๋ น์–ด๋Š” ๋ฌด์—‡์ธ๊ฐ€? 1) MERGE 2) MODIFY 3) TRUNCATE 4) DELETE ๋ฌธ์ œ 3. Commit ๊ณผ Rollback์˜ ์žฅ์ ์œผ๋กœ ์ ํ•ฉํ•˜์ง€ ์•Š์€ ๊ฒƒ์€ ๋ฌด์—‡์ธ๊ฐ€? 1) ๋ฐ์ดํ„ฐ ๋ฌด๊ฒฐ์„ฑ์„ ๋ณด์žฅํ•œ๋‹ค. 2) ์˜๊ตฌ์ ์ธ ๋ณ€๊ฒฝ์„ ํ•˜๊ธฐ ์ „์— ๋ฐ์ดํ„ฐ์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. 3) ์˜๊ตฌ์ ์ธ ๋ณ€๊ฒฝ์„ ํ•  ์ˆ˜ ์—†๊ฒŒ ํ•œ๋‹ค. 4) ๋…ผ๋ฆฌ์ ์œผ๋กœ ์—ฐ๊ด€๋œ ์ž‘์—…์„ ๊ทธ๋ฃนํ•‘ํ•ด ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ฌธ์ œ 4. ๋‹ค์Œ ์ค‘ ํ…Œ์ด๋ธ” ๋ช…์œผ๋กœ ๊ฐ€๋Šฅํ•œ ๊ฒƒ์€ ๋ฌด์—‡์ธ๊ฐ€? 1) EM.. 2022. 4. 22.
[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.
[AWS] EC2 persistent instance retirement scheduled ํ•ด๊ฒฐ ๋ณต๊ตฌํ•  ์ˆ˜ ์—†๋Š” ์žฅ์• ๋ฅผ ๊ฐ์ง€ํ•˜๋ฉด EC2 ์ธ์Šคํ„ด์Šค๊ฐ€ ์‚ฌ์šฉ ์ค‘์ง€๋˜๋„๋ก ์˜ˆ์•ฝ๋ฉ๋‹ˆ๋‹ค. ๋ผ๊ณ  ์ด๋ฉ”์ผ์ด ๋˜์™”๋‹ค..!! ๋‘๋ฒˆ์งธ ๊ฒฝํ—˜ํ•˜๋Š” ์ผ์ด๋ผ์„œ ๊ทธ๋Ÿฐ์ง€ ์ด์ œ ๊ทธ๋Ÿฌ๋ ค๋‹ˆํ•œ๋‹ค..๋ฌด๋ฃŒ ์ธ์Šคํ„ด์Šค๋‹ˆ๊นŒ ์ด๋Ÿฐ๊ฑด๊ฐ€?! ํ™˜๊ฒฝ : EC2 Ubuntu, tomcat9, Nginx, Oracle 11g XE Instance state -> Stop instance ํด๋ฆญ (์™„์ „ํžˆ Stopped ๋ ๋•Œ๊นŒ์ง€ 5๋ถ„ ~10๋ถ„ ์ •๋„ ์†Œ์š”๋จ) -> Start instance ํด๋ฆญ ์„œ๋ฒ„ ์ ‘์†ํ›„ ํ†ฐ์บฃ & Nginx ์žฌ์‹œ์ž‘ $ sudo service tomcat9 start $ sudo service nginx start ์˜ค๋ผํด ๊ธฐ๋™ $ su - oracle $ sqlplus /nolog SQL > conn /as sysdba SQL > startup; OR.. 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.
[Linux] certbot 404 ์—๋Ÿฌ type: unauthorized ํ•ด๊ฒฐํ•˜๊ธฐ ์—๋Ÿฌํ•ด๊ฒฐ๊ณผ์ •์„ ์Šค์Šค๋กœ ๊ธฐ์–ตํ•˜๊ธฐ์œ„ํ•ด ํฌ์ŠคํŒ…ํ•ฉ๋‹ˆ๋‹ค. AWS ์„œ๋ฒ„ํ™˜๊ฒฝ : Ubuntu, Tomcat9, Nginx(ํ†ฐ์บฃ์—ฐ๋™) Tip: ํ„ฐ๋ฏธ๋„ ์ฐฝ 2๊ฐœ ์ผœ๋†“๊ณ  ์‹คํ–‰ํ•ด์•ผํ•จ. โœจ์ฒซ๋ฒˆ์งธ ํ„ฐ๋ฏธ๋„ (Ubuntu ์„œ๋ฒ„ ์ ‘์†ํ›„) certbot ์—๋Ÿฌ 404 ubuntu@:~$ sudo certbot --nginx -d yunamom.duckdns.org Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator nginx, Installer nginx Obtaining a new certificate Performing the following challenges: http-01 challenge for yunamom.duck.. 2022. 4. 19.
[Linux] certbot ๋ช…๋ น์œผ๋กœ ์ธ์ฆ์„œ ์‚ญ์ œํ•˜๋Š”๋ฐฉ๋ฒ• โ—‡ ์ธ์ฆ์„œ ๋ชฉ๋ก ํ™•์ธ ubuntu@:~$ sudo certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Found the following certs: Certificate Name: yunamom.duckdns.org Domains: yunamom.duckdns.org Expiry Date: 2022-04-17 23:33:36+00:00 (INVALID: EXPIRED) Certificate Path: /etc/letsencrypt/live/yunamom.duckdns.org/.. 2022. 4. 19.
300x250

์ฝ”๋“œ