분류 전체보기 106

[SQL] 02. 테이블의 구조 - DESC

1. DESC DESC 명령어는 테이블의 구조를 출력해주는 명령어이다. 필드명, 타입, Null허용 유무, 키, 기본 값 등을 확인 할 수 있다. 1-1. 예제 employees는 직원번호(emp_no), 생일(birth_date), 성(first_name), 이름(last_name), 성별(gender), 고용일(hire_date), 관리자번호(superior_no)로 이루어져 있습니다. salaries는 직원번호(emp_no), 연봉(salary), 시작일(from_date), 종료일(to_date)로 이루어져 있습니다. 그럼 직접 데이터베이스의 구조를 출력해봅시다. 1-2. 지시사항 DESC 문을 이용해 employees의 구조를 출력해보세요. DESC 문을 이용해 salaries의 구조를 출력해보..

DB,SQL 2023.07.01

[SQL] 01. SQL 기초

1. 데이터베이스(Database, DB)란? 여러 사람이 공유해 사용할 목적으로 통합하여 관리되는데이터의 모음. MariaDB, Amazon Redshift, OracleDB 등 다양한 종류가 있음 데이터베이스의 종류에 따라서 사용법이 조금씩 다름 하지만, 데이터베이스에서 검색과 분석에 사용되는 기본 사용 방법은 데이터베이스 종류와 상관없이 동일 2. 데이터베이스를 제어하는 방법 2-1. SQL 이란? SQL은 Structured Query Language의 약자로 데이터베이스에 접근하고 조작하기 위한 표준 언어 2-2. SQL로 할 수 있는 것 데이터 검색 데이터 삽입 데이터 수정 데이터 삭제 데이터베이스 생성 테이블 생성 그 외 많은 것.....

DB,SQL 2023.07.01

[Vagrant] Vagrant란?, Vagrant로 VirtualBox에 Centos7 설치

[참고] https://www.vagrantup.com/ Vagrant by HashiCorp Vagrant enables users to create and configure lightweight, reproducible, and portable development environments. www.vagrantup.com 1.Vagrant란? [참고] https://www.vagrantup.com/intro Vagrant는 가상머신 환경을 생성하고 세팅하는 툴이다. 간단하게(간단하지 않음), 세팅된 가상 머신을 생성할 수 있도록 해준다. 2.Vagrant Getting-Start [참고] https://learn.hashicorp.com/collections/vagrant/getting-started..

Vagrant 2022.09.05

[Docker] Spring Boot 어플리케이션 이미지 생성

[참고] spring Boot application을 Docker 이미지로 생성 https://spring.io/guides/gs/spring-boot-docker/ Spring Boot with Docker this guide is designed to get you productive as quickly as possible and using the latest Spring project releases and techniques as recommended by the Spring team spring.io 0. 필요 사항 Spring Boot Application [참고] https://woopi1087.tistory.com/51?category=972320 Virtual Box(가상화 소프트웨어)..

Docker 2022.08.31

[Docker] Centos7환경에서 Docker 설치

[참고] 가상머신 설치 안하고 도커를 테스트 할 수 있는 사이트 https://labs.play-with-docker.com/ Play with Docker Play with Docker A simple, interactive and fun playground to learn Docker Login labs.play-with-docker.com 1. 도커를 다룰 유저 생성 예 : useradd devops passwd devops [참고] 만약 해당 유저에게 sudo를 부여하고자 한다면 echo "devops ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/devops 2. 도커 설치 다음 명령어를 순차적으로 입력한다. yum update -y yum install -y yum..

Docker 2022.08.30

[Docker] Docker 관련 개념 정리 링크 모음

1. 컨테이너 vs VM http://www.opennaru.com/cloud/virtualization-vs-container/ 컨테이너 기술과 가상화 기술 비교 - Opennaru, Inc. 가상화 기술은 하이퍼바이저를 통해 하드웨어를 에뮬레이션하여 가상 이미지 마다 게스트 운영 체제로를 사용합니다.컨테이너 는 애플리케이션 수준으로 구성되며 커널 하나를 공유하는 여러 www.opennaru.com 2. 도커란? https://subicura.com/2017/01/19/docker-guide-for-beginners-1.html 초보를 위한 도커 안내서 - 도커란 무엇인가? 도커를 처음 접하는 시스템 관리자나 서버 개발자를 대상으로 도커 전반에 대해 얕고 넓은 지식을 담고 있습니다. 도커가 등장한 배경..

Docker 2022.08.30

[프로그래머스] 수박수박수박수박수박수?

## Github URL : https://github.com/leewoopyo/coding_test/blob/master/programmers/Solution_12922.java GitHub - leewoopyo/coding_test Contribute to leewoopyo/coding_test development by creating an account on GitHub. github.com 1. 소스코드 public String solution(int n) { // 문자열을 추가로 붙일 StringBuilder를 선언 StringBuilder result = new StringBuilder(); // n/2 만큼 반복을 돌리면서 "수박" 을 붙임 for (int i = 0; i < n/2; i+..