Oracle/PL/SQL
15일차 # 2-9: 변수 타입
Bohemian life
2012. 4. 24. 21:00
* PL/SQL variables <== http://goo.gl/4QQZE
- Scalar : Number, Character, Date, Boolean
- Composite : Record, Table, Array
- Reference : Pointer (ref, ref cursor)
- Large object (LOB) : Locator (blob, clob, nclob)
* Non-PL/SQL variables:
- Bind variables (Host variable) : variable, print
o 클라이언트 메모리: 바인드 변수의 식별자(identifier)
o 서버 메모리: 바인드 변수의 실제 값(variable for data)
==> 서버와 연결을 끊으면 바인드 변수의 내용을 볼 수 없습니다.
o 서버 쪽 변수에 대한 일종의 포인터
o 클라이언트 종료: 바인드 식별자와 변수 모두 제거됩니다
- Substitution variable : &, &&, define, undefine, accept, ...