-
select (join부터)oracle 2020. 8. 13. 02:11
●조인 -두 개 이상의 테이블에 있는 컬럼의 값을 한번에 가져오기 위해 사용하는 것이 조인이다. -select 컬럼명 from 테이블1, 테이블2; -두 개 이상의 테이블에서 가져온 결과 중에 정확한 결과만 가져오기 위해 공통 부분을 이용한 조건문이 반드시 필요하다. --사원테이블(emp)과 부서테이블(dept)을 join한다. select * from emp,dept; select * from emp, dept where emp.deptno = dept.deptno; select * from emp a1, dept a2 where a1.deptno = a2.deptno; --사원의 사원번호, 이름, 근무부서 이름을 가져온다. select empno, ename, dname from emp a1, dep..
-
select( join전까지)oracle 2020. 8. 12. 10:25
●테이블 목록 조회하기 --현재 접속한 데이터베이스내의 테이블 조회 select * from tab; ●테이블 정보 조회하기 --원하는 테이블의 구조를 조회한다. desc board; ●모든 컬럼의 데이터 가져오기 select * from 테이블명 ●특정 컬럼의 데이터 가져오기 select 컬럼명1, 컬럼명2 from 테이블명 ●NVL https://coding-factory.tistory.com/296 [Oracle] Null값을 치환해주는 (NVL,NVL2) 함수 사용법 & 예제 오라클을 사용하다보면 NULL값을 다른 함수로 치환해주어야하는 경우가 많습니다. 이럴경우 오라클에서 제공하는 NVL함수를 써서 쉽게 처리할 수 있는데요. NVL함수는 매우편리하지만 오라클에서 coding-factory.tis..
-
forEach에 대해서 참조한 블로그 + 여러가지 배열 메소드javascript 2020. 6. 6. 18:57
forEach 설명이 잘되어 있는 블로그 https://yuddomack.tistory.com/entry/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-Array-forEach 자바스크립트 Array forEach 이번 글에서는 자바스크립트 Array(배열) 객체의 메서드인 forEach에 대해 작성하겠습니다. forEach는 for문과 마찬가지로 반복적인 기능을 수행할 때 사용합니다. 하지만 for문처럼 index와 조건식, inc yuddomack.tistory.com 자바스크립트 배열 메소드 중 고차 함수 학습하기 (js array method) forEach, find, filter, map, reduce, sort, some, every Arr..
-
call, apply, bindjavascript 2020. 5. 28. 20:05
//Bind, call and apply var john = { name : 'John', age : 26, job : 'teacher', presentation : function(style, timeOfDay){ if (style === 'formal'){ console.log('Good' + timeOfDay + ', Ladies and gentleMen! I\m ' + this.name + ', I\'m a ' + this.job + ' and I\'m ' + this.age + ' years old.'); } else if (style === 'friendly'){ console.log('Hey! What\'s up? I\'m '+ this.name + ', I\'m a ' + this.job ..
-
closurejavascript 2020. 5. 28. 18:09
//closures function retirement(retirementAge){ var a = ' years left until retirement.' return function(yearOfBirth){ var age = 2020 - yearOfBirth; console.log((retirementAge - age) + a); } } var retirementUS = retirement(66); var retirementGermany = retirement(65); var retirementIceland = retirement(67); retirementUS(1990); retirementGermany(1990); retirementIceland(1990); //closures summary /* ..
-
Creating Objectjavascript 2020. 5. 27. 18:29
var Person = function(name,yearOfBirth, job){ this.name = name; this.yearOfBirth = yearOfBirth; this.job = job; } Person.prototype.calculateAge = function(){ console.log(2020 - this.yearOfBirth); } Person.prototype.lastNAme = 'Smith'; var john = new Person('John',1999,'teacher'); //instantiation var mark = new Person('Mark',1979,'retired'); john.calculateAge();//21 mark.calculateAge();//41 conso..