Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Implementation  





2 See also  





3 External links  





4 References  














Information schema






Русский
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Inrelational databases, the information schema (information_schema) is an ANSI-standard set of read-only views that provide information about all of the tables, views, columns, and procedures 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:

  • the SHOW command of MySQL
  • the DESCRIBE command of Oracle's SQL*Plus
  • the \d command in psql (PostgreSQL's default command-line program).
  •  => 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 implement the information schema. An open-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. 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.
  • ^ "Snowflake Information Schema". www.snowflake.com. Retrieved 2024-03-25.
  • ^ "Pragma statements supported by SQLite". www.sqlite.org. Retrieved 2022-02-01.

  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Information_schema&oldid=1215511097"

    Categories: 
    Databases
    Computer standards
    American National Standards Institute standards
    Database stubs
    Hidden categories: 
    Articles containing potentially dated statements from 2015
    All articles containing potentially dated statements
    All stub articles
     



    This page was last edited on 25 March 2024, at 15:49 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki