일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 클라우드
- retry
- 자료구조
- feign
- golang
- JPA
- 운영체제
- PL/SQL
- 디자인 패턴
- 데이터베이스
- Kafka
- Spring Cloud Feign
- Spring
- Jenkins
- MVC
- 백준
- 페이징
- db
- Spring Boot
- Spring Cloud
- 쿼리
- MST
- 코딩
- 자바
- Intellj
- aws
- SQL
- 알고리즘
- 오라클
- DP
- Today
- Total
목록분류 전체보기 (141)
justgo_developer
■ group by select distinct topic from help; select topic from help group by topic; ex) 부서별 급여 합계select department_id, sum(salary)from EMPLOYEESgroup by department_id; * 사용불가 : 단일그룹의 그룹 함수가 아닙니다.select distinct departmet_id, sum(salary)from EMPLOYEES; 부서별 사원수와 평균 급여select department_id, sum(salary), count(salary), avg(salary)from employeesgroup by department_id; 부서별 직급별 사원수와 평균 급여select departmen..
■ sysdateselect sysdate from dual;:현재 날짜 반환 ■ months_between(date1, date2)select months_between(sysdate, 필드명) from 테이블명;: 날짜 차이 반환 ■ add_monthsselect add_months(sysdate, 7) from dual;: 현재날짜에 두번쨰 인자 개월수 추가 ■ next_dayselect next_day(sysdate, '화요일') from dual;: 첫번째 인자 시작일부터 두번쨰 인자가 나오는 요일의 날짜 반환 ■ last_dayselect last_day(sysdate) from dual;: 해당달의 마지막 일수 ■ to_charselect to_char(sysdate, 'yyyy.mm.dd'..
오라클 기본함수 : 문자함수 ■ concat(char1, char2)select concat('Hello', 'bye'), concat('good', 'bad') from dual;: 문자열 합치기 -> Hellobye, goodbad 반환= select 'good' || 'bad' from dual; ■ initcap(char)select initcap('good morning') from dual;: 첫문자를 대문자로 변경 -> Good Morning 반환 select initcap('good/bad morning') from dual;-> Good/Bad Morning 반환 ■ lower(char) / upper(char)select lower('GOOD') from dual;: 소문자로 변경 ->..
오라클 기본 함수 ■ likewhere 필드명 like '_a%';: 필드명 중 2번째 글자가 a인 조건 where 필드명 like '__a%';: 필드명 중 3번째 글자가 a인 조건 ■ iswhere 필드명 is null;: 값이 null인 경우 where 필드명 is not null;: 값이 null이 아닌 경우 ■ order byorder by 필드명 asc;: 필드명으로 오름차순으로 출력 * asc 생략 가능* desc: 내림차순 ■ sumselect sum(필드명)from 테이블명;: 필드명의 전체 합계 ■ countselect count(*)from 테이블명;: 전체 레코드 수 select count(all 필드명), count(distinct 필드명) from 테이블 명;: 중복제거 또는 중..
■ descdesc Table명: 테이블 구조 표시 ■ asselect 필드명 as "변경할 이름"-> 변경할 이름으로 출력( as 생략 가능) ■ distinctselect distinct 필드명: 중복제거 ■ notwhere not( 필드명 = 값 );= where 필드명 값 ;: 조건이 아닌경우 ■ and / orwhere 필드명 = 값 and(or) 필드명 = 값 ; ■ betweenwhere 필드명 between 값1 and 값2;: 값1 ~ 값2 사이 ■ inwhere 필드명 in ( 값1, 값2, 값3);: 필드명= 값1, 필드명=값2, 필드명=값3 인 조건 ■ likewhere 필드명 like 'D%';: 필드명이 D로 시작하는 조건 where 필드명 like '%d';: 필드명이 d로 끝..
cmd 실행 -> sqlplus사용자명비밀번호 입력오라클 확인 SQL ■ SQL 기능에 따른 분류 - 데이터 정의어(DDL) : 테이블이나 관계의 구조를 생성하는데 사용하며, CREATE, ALTER, DROP 문 등이 있음 - 데이터 조작어(DML) : 테이블에 데이터를 검색, 삽입, 수정, 삭제하는 데 사용하며 SELECT, INSERT, DELETE, UPDATE 문 등이 있음. 여기서 SELECT문은 특별히 질의어(query)라고 한다. - 데이터 제어어(DCL) : 데이터의 사용 권한을 관리하는 데 사용하며 GRANT, REVOKE 문 등이 있음 ■ SELECT 문의 구성 요소 SELECT [ ALL | DISTINCT ] 속성 이름FROM 테이블이름 WHERE 검색조건GROUP BY 속성이름H..
데이터베이스 개요 ■ 자료(Data) : 현실 세계에서 관찰이나 측정을 통해 수집한 단순한 사실이나 값 ■ 정보(Information) - 의사 결정에 도움을 줄 수 있는 유용한 형태 - 자료를 가공(처리)해서 얻을 수 있는 결과를 의미 ■ 데이터베이스 - 어느 한 조직체의 여러 응용 시스템들이 공동으로 사용할 수 있도록 통합하여 저장한 운영데이터의 집합 - 공동의 목적을 지원하기 위한 서로 관련된 자료들의 모임 - 주제와 관련된 의미 있는 데이터들의 모음 데이터베이스의 정의 ■ 통합된 데이터(Integrated data) - 산재되어 있지 않고 한곳에 있어야 함. - 모든 데이터가 중복을 최소화하면서 통합 ■ 저장 데이터(stored data) - 컴퓨터에서 처리가 가능하도록 전자적 형태로 저장 - 디..
중국어 숫자 一 二 三 四 五 六 七 八 九 十 百 千 万 [yī] [ èr] [ sān ] [ sì] [ wǔ ] [ liù ] [ qī ] [ bā ] [ jiǔ ] [ shí ] [bǎi] [qiān] [ wàn ] 이 얼 싼 쓰 우 리우 치 빠 지우 슬 바이 치엔 완 일 이 삼 사 오 육 칠 팔 구 십 백 천 만
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263import java.util.*; public class Main { static int N; static int M; static int[] arr; static int[] temp; static boolean[] visit; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); arr = new int[9]; temp = new int[N]; v..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354import java.util.*; public class Main { static int N; static int M; static int[] arr; static int[] temp; static boolean[] visit; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); arr = new int[9]; temp = new int[N]; visit = new boolean..