분류 전체보기 385

[oracle] 문자열 및 날짜, 비교 조건

문자열 및 날짜 123456select employee_id, last_name, job_id, department_id from employeeswhere last_name = 'Whalen' ;cs EMPLOYEE_ID LAST_NAME JOB_ID DEPARTMENT_ID ----------- ---------------------------------------------- -------------------- ------------- 200 Whalen AD_ASST 10 문자열 및 날짜 값은 작은 따옴표로 묶음 문자 값은 대소문자 구분, 날짜 값은 DD-MON-RR (일-월-년도) 비교 조건 123456select last_name, salary from employeeswhere salary

데이터베이스 2013.04.03

[oracle] 연결 연산자, 리터럴 문자열, 중복 행 제거

연결 연산자 12345678910select LAST_NAME || JOB_ID as "EMPLOYEES" from EMPLOYEES; 결과EMPLOYEES-----------------AbelSA_REPAndeSA_REPAtkinsonST_CLERKAustinIT_PROGBaerPR_REPColored by Color Scriptercs 리터럴 문자열12345678910select LAST_NAME || ' is a ' || JOB_ID as "EMPLOYEES" from EMPLOYEES; 결과EMPLOYEES----------------------Abel is a SA_REPAnde is a SA_REPAtkinson is a ST_CLERKAustin is a IT_PROGBaer is a PR_..

데이터베이스 2013.04.03

[oracle] 오라클 시작하기, 설치

1. 오라클 다운로드 http://www.oracle.com/kr/index.html → 다운로드 → Oracle Database 11g 다운로드 2. 설치 A. 서버 클래스 선택 3. 환경변수 등록 A. 시작 → 실행 → sysdm.cpl B. 고급 → 환경변수 → 시스템변수 → path [편집] C. ;C:\app\사용자 계정\product\11.2.0\dbhome_1\BIN\ 4. 실행 A. 일반사용자로 접속 C:\>sqlplus hr/hr B. the account unlock인 경우 C:\>sqlplus / as sysdba SQL>alter user hr account unlock; C. 계정로그인 확인 SQL>show user D. invalid username .....인 경우 C:\>sq..

데이터베이스 2013.04.03