반응형 전체 글129 switch 문 switch문은 다중 if 문을 대체 할 수 있음 .. 예를들어.. const a = ; if (a ===1){ console.log(1); }else if (a ===2){ console.log(2); }else if (a ===3){ console.log(3); }else{ console.log(0); } 의 경우 const a = 1; switch(a){ case 1: console.log(0); break; case 2: console.log(0); break; case 3: console.log(0); break; default : console.log(0); break; } ... 로 작성이 가능하다 . 각 case 에 break 추가해서 아래의 case가 실행이 되지 않게 한다. break가.. 2022. 5. 17. 3항 연산자... 간단한 if 문을 대체할때 사용 * 조건 ? 조건이 참일경우 실행 : 조건이 거짓일 경우 실행 a > b ? console.log("true") : console.log("false"); ** 3항 연산자 중첩 사용 * if.. else...의 중첩 도 대체 가능 ==== if 문 ==== if (a > b) { console.log("1"); } else if (a > c) { console.log("2"); }else if (a > d){ console.log("3"); } else { console.log("4"); } ==== 3항 연산자로 ==== a > b ? console.log("1") : a > c ? console.log("2") : a > d ? console.log("3") : co.. 2022. 5. 17. Javascript 간편정리 * Javascript는 모든 브라우저에 기본 탑재 되어 있음. * console.log() => 브라우저의 콘솔에 괄호안의 내용을 출력 해 줌 * 변수선언 - 상수 : const -> const conArray; - 변수 : let -> let letAr; * 변수타입 - integer : const a = 1; - string : const a = "1"; - boolean : const a = true; - null : const a = null; - undefined : const a; - array : const a = ["1", "2", "3", "a"]; - object : const a = {}; * 함수 - 키워드 : function 으로 시작. 함수명 + () {코드블록} 로 완성 - .. 2022. 5. 16. ORACLE DB LINK 가끔 하기때문에 매번 잊어버려서... 또.. 이거 찾기도 힘들다.. -_-;;; 각자의 환경이 다르기 때문에 어떻게 해야할지 막막함.. 그리고.. DBA도 아니고.. 엄청나게 DB에 대한 지식도 많은게 아니기 때문에 더더욱 힘들다.. tnsora 파일을 설정하는 그런건 귀찮다.. 그래서.. 간단하게 db link를 할수 있는 방법을 기록 해 둔다. 아주 간단하게 아래의 구문을 실행하면 끝이다. 현재 오라클19c 사용중. (ORACLE CLOUD DBCS 19c) CREATE PUBLIC DATABASE LINK 링크이름 CONNECT TO 아이디 IDENTIFIED BY 패스워드 USING '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 아이피)(PORT = 오.. 2022. 2. 18. DBCS TABLESPACE * ORACLE CLOUD에서 사용되는 DB 즉.. DBCS 에서의 테이블 스페이스 조회/생성 등에 대해서 알아봅니다. * 클라우드에서 제공되는 DBCS(Database Cloud Service)의 파일구조는 구축형으로 사용하는 ORACLE과는 다른듯 하다. * 그동안 겪었던 상황을 정리해 봅니다. 1.테이블 스페이스 조회 SELECT A.TABLESPACE_NAME, A.FILE_NAME, ROUND((A.BYTES - B.FREE)/1024/1024/1024, 2) || 'GB' AS USED_SIZE, ROUND(B.FREE/1024/1024/1024, 2) || 'GB' AS FREE_SIZE, ROUND(A.BYTES/1024/1024/1024, 2) || 'GB' AS TOTAL_SIZE, T.. 2022. 2. 9. 여호수아 2장(Joshua 2) 1. Then Joshua secretly sent out two spies from the Israelite camp at Acacia Grove. He instructed them, "Scout out the land on the other side of the Jordan River, especially around Jericho." So the two men set out and came to the house of a prostitute named Rahab and stayed there that night. 눈의 아들 여호수아가 싯딤에서 두 사람을 정탐꾼으로 보내며 이르되 가서 그 땅과 여리고를 엿보라 하매 그들이 가서 라합이라 하는 기생의 집에 들어가 거기서 유숙하더니 2. But someo.. 2022. 1. 28. 이전 1 ··· 18 19 20 21 22 다음 반응형