Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Information schema

From Wikipedia, the free encyclopedia
Standard for accessing information about a database schema

Inrelational databases, theinformation schema (information_schema) is anANSI-standard set of read-only views that provide information about all of thetables,views,columns, andprocedures in a database.[1] It can be used as a source of the information that some databases make available through non-standard commands, such as:

 => SELECT count(table_name) FROM information_schema.tables;  count  -------     99 (1 row) => SELECT column_name, data_type, column_default, is_nullable       FROM information_schema.columns WHERE table_name='alpha';  column_name | data_type | column_default | is_nullable  -------------+-----------+----------------+-------------  foo         | integer   |                | YES  bar         | character |                | YES (2 rows) => SELECT * FROM information_schema.information_schema_catalog_name;  catalog_name  --------------  johnd (1 row)

Implementation

[edit]

As a notable exception among major database systems, Oracle does not as of 2015[update] implement the information schema. Anopen-source project exists to address this.

RDBMSs that support information_schema include:

RDBMSs that do not support information_schema include:

See also

[edit]

External links

[edit]

References

[edit]
  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. Retrieved2015-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. ^"Snowflake Information Schema".www.snowflake.com. Retrieved2024-03-25.
  3. ^"Pragma statements supported by SQLite".www.sqlite.org. Retrieved2022-02-01.


Stub icon

Thisdatabase-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Information_schema&oldid=1332518401"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp