簡體   English   中英

有sys.objects和sys.columns時需要information_schema

[英]Need of information_schema when having sys.objects and sys.columns

對於information_schema目錄視圖的需求是什么,因為它們提供了與(sys.objects和sys.columns)相同的細節。

information_schema.tables----->retrives from sys.objects.
information_schema.column----->retrives from sys.columns.

information_schema ...是ANSI兼容的視圖,其他RDBMS系統也有這些視圖,如MySQL,postgreSQL,SQLite。 sys.columns僅存在於SQL Server中

PostgreSQL: http//www.postgresql.org/docs/current/interactive/information-schema.html

MySQL: http//dev.mysql.com/doc/refman/5.7/en/information-schema.html

SQLite: http ://www.sqlite.org/cvstrac/wiki?p = InformationSchema

另一方面,Oracle沒有這些視圖,但是他們自己的版本如ALL_TABLESALL_TAB_COLUMNS

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM