Background Image
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

 

View

뷰(가상 테이블)는 물리적으로 존재하지 않는 가상의 테이블이며, 기존의 테이블이나 뷰에 대한 질의문을 이용하여 뷰를 생성할 수 있다. VIEW 와 VCLASS 는 동의어로 사용된다.


CREATE [OR REPLACE] {VIEW | VCLASS} view_name
[<subclass_definition>]
[(view_column_name [COMMENT 'column_comment_string'], ...)]
[INHERIT <resolution>, ...]
[AS <select_statement>]
[WITH CHECK OPTION]
[COMMENT [=] 'view_comment_string'];
<subclass_definition> ::= {UNDER | AS SUBCLASS OF} table_name, ...
<resolution> ::= [CLASS | TABLE] {column_name} OF superclass_name [AS alias]

 

기존에 제공하는 view가 10.2에서 특별히 변경된 부분은없으나, 

9.x이하 버전에서 생성된 view가 4Kbyte를 넘어서는 경우 아래와 같이 'show create view'구문으로 확인 시 , 짤려보이는 현상이 발생하였다.

CUBRID 9.3 (9.3.9.0002) (64bit release build for linux_gnu) (Aug  4 2017 11:55:22)

csql> show create view too_much_long_view;
=== <Result of SELECT Command in Line 1> ===
  View                  Create View
============================================
  'too_much_long_view'  'select [db_class].[class_name], [db_class].[class_name],
...(중략)...
[db_class].[class_name], [db_class].[cl'
 

1 rows selected. (0.030719 sec) Committed.

마지막 부분을 보면, [db_class].[cl'로 더 이상 출력되지 않았다.

 

 

새로 release된 10.2버전에서 이를 수정하여 4Kbyte이상의 view도 처리가 가능해졌다.

CUBRID 10.2 (10.2.1.8849-de852d6) (64bit release build for Linux) (May 28 2020 15:55:52)

csql> show create view too_much_long_view;
=== <Result of SELECT Command in Line 1> ===
  View                  Create View
============================================
  'too_much_long_view'  'select [db_class].[class_name], [db_class].[class_name],
...(중략)...
[db_class].[class_name], [db_class].[class_name], [db_class].[class_name], [db_class].[class_name] from [db_class] [db_class]'

1 row selected. (2.232959 sec) Committed.

 

 

9.x버전은 10.2와 DB호환이 되지 않는다.

기존의 9.x의 사용자라면 'cubrid unloaddb'를 수행하여 10.2에 loaddb하면, show 구문으로 view확인이 가능하다. 

 

 


  1. embedded sql 사용법

    Date2008.11.21 CategoryCCI/DB API Byadmin Views29737
    Read More
  2. eclipse에서 python 및 CUBRID broker_log_top 사용하기

    Date2009.07.28 CategoryWindows Bycubebridge Views27273
    Read More
  3. cubrid_fetch_all 함수 추가하기

    Date2009.06.16 CategoryPHP By남재우 Views20828
    Read More
  4. csql(SQL 실행기) 사용법

    Date2008.11.21 Category기타 Byadmin Views26557
    Read More
  5. cron을 이용한 백업 자동화

    Date2009.04.01 CategoryLinux Byadmin Views33125
    Read More
  6. connect by 구현 방법

    Date2009.04.01 Category기타 Byadmin Views52375
    Read More
  7. apache, php rpm package 생성 시 필요한 rpm 스펙

    Date2011.07.14 CategoryPHP Byadmin Views25244
    Read More
  8. apache, PHP 설치하기 - LINUX

    Date2011.03.08 CategoryPHP By남재우 Views31308
    Read More
  9. [질의튜닝]order by desc가 인덱스 타게 하려면

    Date2011.07.14 Category튜닝 Byadmin Views28488
    Read More
  10. [주의사항] CUBRID에서의 BLOB/CLOB 사용시 백업 및 복구에 대한 주의 점

    Date2011.07.14 Category기타 Byadmin Views52807
    Read More
  11. [linux] wget으로 제품 다운로드 시 "wget: unable to resolve host address ‘ftp.cubrid.org’" 해결방

    Date2021.07.02 CategoryInstall By큐브리드_김주현 Views2299
    Read More
  12. [10.2 path] - 생성된 view구문을 'show create view' 수행 시 정상적으로 출력되지 않던 이슈 patch

    Date2020.11.09 Category기타 By큐브리드_김주현 Views895
    Read More
  13. Windows 에서 CUBRID 설치하기

    Date2008.11.22 CategoryInstall By남재우 Views43645
    Read More
  14. Windows 에 설치 된 JRE 설치 위치 확인 하기.

    Date2015.05.28 CategoryWindows By성진 Views12573
    Read More
  15. Vista_IIS_CUBRID_ASP연동

    Date2010.01.31 CategoryODBC/OLEDB Byjanus Views24553
    Read More
  16. VB에서 CUBRID ODBC/OLEDB 사용하는 방법 및 샘플코드.

    Date2012.06.30 CategoryODBC/OLEDB Byseongjoon Views26927
    Read More
  17. UTF-8 사용법

    Date2008.11.21 Category기타 Byadmin Views23235
    Read More
  18. UNIX/LINUX 에서 CUBRID 설치하기

    Date2008.11.22 CategoryInstall By남재우 Views37534
    Read More
  19. Spring framework 사용 예제

    Date2009.04.01 CategoryJava Byadmin Views53138
    Read More
  20. Server HA 구성 시 CUBRID 설정과 방법

    Date2010.02.03 Category기타 By정만영 Views21186
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales