카테고리 없음

221212 ~ 221216

Berylly 2022. 12. 20. 17:33

T. 김동식 + 서치보완

 

용어정리

null= NullPointerException

 

primary key: 주키

daemon: 사용자가 직접적으로 제어하지 않고, 백그라운드에서 돔

MS949: Microsoft의 언어체제, 한글

 

Apache (Apache Software Foundation): 개발자들의 커뮤니티

톰캣(Apache Tomcat): 웹 애플리케이션 서버(WAS: Web Application Server), 아파치 프로젝트 중 하나.

 

데이터베이스: 데이터의 집합

DBMS: 테이블, 사용자와 데이터베이스를 연결

 

NTP(Network Time Protocol): UTC사용, 컴퓨터들끼리 시각을 동기화

UTC(Coordinated Universal Time/Universal Time Coordinated) 국제 표준시

 

GNU = 유닉스

Kernel: 핵심운영체제소스, 엄격한 의미의 Linux(무료 유닉스)

 

relation&relationship

테이블 = 릴레이션(relation)
테이블 데이터들의 관계 = relationship

 

파일명

bin: 명령어들이 모여있음
dev: 장치파일
home: 사용자 폴더
mnt: 저장장치
etc: 설정
root: 루트 사용자의 공간
usr(unix system resource)

 

 

 

자료구조

선형자료구조: 스택, 큐, 배열, 리스트

비선형자료구조: 그래프, 트릴

 

 

데이터타입(기본타입: bsilfdcb, 참조타입: 배열, 열거, 클래스, 인터페이스)

 

 

 

 

 

메모리영역(메소드, 힙, 스택)

메소드: 함수

힙: 객체 생성, 무더기

스택: 메소드호출시 생성

 

 

 

데이터관리

파일시스템, 분산 데이터 베이스 시스템(대규모의 응용 시스템), 웹 데이터베이스 시스템(웹브라우저에서 사용)

 

정보저장 단위 (BKM GTP EZY)

byte KB MB GB TB PB(Peta Byte) EB(Exa Byte) ZB(Zetta Byte) YB(Yotta Byte)

 

정보표현 단위 (BN BW FR FD) 비니바워필레

bit nibbl byte Word filde record 

1nibble = 4bit, (컴퓨터 환경의 용어)
4byte = 1Word (연산의 기본단위가 되는 정보의 양) ( = 32bit)

filde = 데이터 필드, 테이블 중 명확하게 정의된 부분 (예: column)

record = 데이터를 포함하는 필드의 집합

file = 일정한규칙, 관련있는 정보의 집합

database = 파일의 집합

 

 

Python

>>> a=4
>>> id(a) // java는 System.identityHashCode(a)
140735562634120

 

 

 

JAVA

int[] array = {1, 2, 3};
Person returnItSelf() { //자기 자신을 반환하는 메서드
		return this;
	}
String str = "yes";
System.out.println(str.equals("yes")); //true인지 false인지 출력해 확인

 

 

OracleDatabase 언어

SQL: Structured Query Language 구조적쿼리 언어, 데이터 베이스(관리시스템)를 이용하기 위한 언어

DDL(Data Definition Language): 골격을 결정

DML(Data Manipulation Language): 조회, 수정, 삭제

DCL(Data Control Language): 접근, 객체에 권한부여

 

데이터타입

NUMBER, CHAR, VARCHAR2, NVARCHAR2(한글)

 

Oracle VM VirtualBox

pwd, ls, ls -l, ls -al | more, cd ~

su root, man, q(메뉴얼 나가기), exit

shutdown -P, halt -p(바로꺼짐), reboot(리부팅), 

mkdir, touch, rm, rmdir, rm -rf, cat(파일열어보기)

systemctl get-default 부팅모드 확인

systemctl set-default runlevel 3. target: 런레벨 3으로 변경

ls -l a* 파일찾기

find / -name a* 파일찾기

 

vi 개발자 텍스트에디터

i 입력시작

esc키 입력종료

: 명령시작

w 저장

q 종료

i 취소

 

 

 

SQL Developer

--검색
select * from customer where name = '김연아';
select * from customer where name like '김__';
select * from customer where name like '%김%';

-- 중복제거, alias 별칭
-- 집계함수 aggregate : sum, average, max, min, count
select count( DISTINCT publisher) as 출판자수 from book;
select count( DISTINCT publisher) from book;

--between, 연산자, and/or
select * from book where price between 8000 and 20000;
select * from book where price >= 8000 and price <= 20000;

--in/not in 멤버쉽연산자, 포함하고있는가
select * from book where price in (10000, 20000, 30000);
select * from book where publisher not in('이상미디어', '나무수', '박상희');

--null/not null
select * from customer where phone is null;
select * from customer where phone is not null;
-- , 복합 정보 조건필요
select distinct customer.name as 주문한고객명 
	from orders, customer 
    where orders.custid = customer.custid;
    
-- group by: '기준'으로 집계
 select custid, sum(saleprice)
	from orders 
    group by custid;
    
-- having,  group by와함께, where뒤에 위치.
select custid, count(*) //집계함수(sum, avg, max, min, count)가와야함
	from orders 
    where saleprice >= 8000 
    GROUP BY custid 
    having count(*) > =2;