在INFORMATION_SCHEMA中有一些預設的system view可以來查詢一些跟資料庫相關的資訊
像是table名稱、column名稱等
CHECK_CONSTRAINTS
|
REFERENTIAL_CONSTRAINTS
|
COLUMN_DOMAIN_USAGE
|
ROUTINES
|
COLUMN_PRIVILEGES
|
ROUTINE_COLUMNS
|
COLUMNS
|
SCHEMATA
|
CONSTRAINT_COLUMN_USAGE
|
TABLE_CONSTRAINTS
|
CONSTRAINT_TABLE_USAGE
|
TABLE_PRIVILEGES
|
DOMAIN_CONSTRAINTS
|
TABLES
|
DOMAINS
|
VIEW_COLUMN_USAGE
|
KEY_COLUMN_USAGE
|
VIEW_TABLE_USAGE
|
PARAMETERS
|
VIEWS
|
Ref: http://msdn.microsoft.com/en-us/library/ms186778.aspx
沒有留言:
張貼留言