일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- abstractclass
- 객체형변환
- arguments
- methodArea
- hamobee
- concreteclass
- Vector
- 콘크리트클래스
- Polymorphism
- MSA
- Hashtable
- class
- string
- eclipse
- value
- override
- object
- super
- garbagecollection
- ALTER
- reference
- hashCode
- Eureka
- constantnumber
- 생성자
- start()
- overload
- run()
- 추상클래스
- fuction
- Today
- Total
목록DB/Oracle (22)
뇌운동일지
기본 개념 ) DDL(Data Definition Language) - 테이블 구조와 제약조건 생성, 삭제, 수정하는 명령문 - 인덱스를 생성하는 DDL 명령문 : 테이블 조회 시간을 단축하기 위해 인덱스를 사용 - 먼저 생성된 테이블들을 이용하여 새로운 테이블과 뷰를 생성 DML(Data Manipulation Language) - 한 개의 테이블에 대해 데이터를 삽입, 수정, 삭제하고 행을 조회하는 명령문 - 조인, 서브 쿼리, 집합 연산자를 사용하여 두 개 이상의 테이블로부터 데이터 조회 시 사용 DCL(Data Control Language) - 업무 단위인 트랜잭션의 완료와 취소를 위한 명령문 데이터 사전을 조회하는 명령문 : 생성된 테이블의 목록, 테이블 구조와 제약조건을 파악하기 위해 사용 ..
package : 함수나 프로시저를 묶어서 사용 선언부(명세부) : 프로토타입( 원형만 선언 ) 몸체부 : 내용을 기술 ( 정의 ) ed pack1 create or replace package pack1 is procedure test2 (v_stu_no in student.stu_no%type, v_stu_grade in student.stu_grade%type); function test6 (v_enr_grade in number) returnchar ; end ; / show errors; create or replace package body pack1 is procedure test2 (v_stu_no in student.stu_no%type, v_stu_grade in student.stu_..
test2 create or replace procedure test2 (v_stu_no in student.stu_no%type, v_stu_grade in student.stu_grade%type) is begin update student set stu_grade = v_stu_grade where stu_no = v_stu_no ; end test2; / test3 create or replace procedure test3 (v_stu_no in student.stu_no%type, v_stu_name out student.stu_name%type) is begin select stu_name into v_stu_name from student where stu_no = v_stu_no ; en..
PL/SQL 제어구조가 포함된 SQL Procedural Language extension to SQL PL/SQL declare 변수선언 begin SQL end ; PL/SQL (파일에 작업) => 저장 프로시저 (DB에 작업) => 패키지 => 저장 함수 (return값이 있는 프로시저) - 실행하는 법 @파일명 exec 프로시저명 exec 팩.함 set serveroutput on declare v_condition number := 1; // 미완료 exec 팩.프 ed test -> 자동으로 test.sql 파일이 생성됨. 편집기 open @test 실행하기