본문 바로가기

데이터베이스

[데이터베이스] VIEW

728x90
반응형

View

A logical table based on a table or another view, A view contains no data of its own, but is rather like a “window” through which data from table can be viewed or changed. the view is stored as a select statement in the data dictionary.

Stored Query

  • oracle store view’s definition as a text therefore not space, not indexed

Merge

  • 질의를 재작성하여 수행 query rewrite

View

Inline View

Materialized View

VIEW 의 용도

/보안성, 편리성, 독립성, 다변성

CVAS

CREATE VIEW AS SELECT

Simplify queries

어떤 데이터를 조회하기 위해서 굉장히 복잡한 쿼리가 필요한 경우에 view 를 미리 만들어 놓으면 편리하게 조회할 수 있다.

종속성과 중복성을 해결하기 위한 DBMS

CTAS

CREATE TABLE AS SELECT

DBMS가 관리하는 두가지 종류의 데이터

유저데이터, 시스템데이터

728x90
반응형