정보 스키마

Information schema

관계형 데이터베이스에서는 정보 스키마 (information_schema)[1]는 데이터베이스에 있는 모든 테이블, , 절차에 대한 정보를 제공하는 ANSI 표준 읽기 전용 뷰 집합이다.다음과 같은 비표준 명령을 통해 일부 데이터베이스가 제공하는 정보의 출처로 사용할 수 있다.

=> SELECT count(table_name) FROM information_schema.tables, count -------99 (1행) => SELECT column_name, columns FROM information_schema.columns WHERE table_name='alpha'; column_name data_default는 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------정수 YES 바 문자 YES(2행) => SELECT * FROM information_schema.information_schema_catalog_name; catalog_name ------------------------1행

실행

주요 데이터베이스 시스템 중 주목할 만한 예외로서 오라클은 2015년 현재 정보 스키마를 구현하지 않고 있다.이를 해결하기 위한 오픈소스 프로젝트가 존재한다.

information_schema를 지원하는 RDBMS에는 다음이 포함된다.

information_schema를 지원하지 않는 RDBMS에는 다음이 포함된다.

참고 항목

외부 링크

참조

  1. ^ Melton, Jim; Simon, Alan R. (1993). "19.2 Metadata, Repositories and The INFORMATION_SCHEMA". Understanding the New SQL: A Complete Guide. The Morgan Kaufmann series in data management systems, ISSN 1046-1698. Morgan Kaufmann. p. 371. ISBN 9781558602458. Retrieved 2015-10-22. Metadata that applies primarily to the runtime database environment is managed through the INFORMATION_SCHEMA. [...] Metadata that applies to the information system environment as a whole is managed through the dictionary or repository.
  2. ^ "Pragma statements supported by SQLite". www.sqlite.org. Retrieved 2022-02-01.