继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

SQL Server INFORMATION_SCHEMA

慕粉0415482673
关注TA
已关注
手记 297
粉丝 64
获赞 367

INFORMATION_SCHEMA视图可以检索数据库中的对象的元数据。您可以直接在当前实例的数据库调用需求的数据。另外值得称好的是,在SQL 2005和SQL 2008这些Information Schema views符合ISO标准。

代码

SELECT * FROM INFORMATION_SCHEMA.CHECK_CONSTRAINTS 
                                 COLUMN_DOMAIN_USAGE 
                                 COLUMN_PRIVILEGES 
                                 COLUMNS 
                                 CONSTRAINT_COLUMN_USAGE 
                                 CONSTRAINT_TABLE_USAGE 
                                 DOMAIN_CONSTRAINTS 
                                 DOMAINS 
                                 KEY_COLUMN_USAGE 
                                 PARAMETERS 
                                 REFERENTIAL_CONSTRAINTS 
                                 ROUTINE_COLUMNS 
                                 ROUTINES 
                                 SCHEMATA 
                                 TABLE_CONSTRAINTS 
                                 TABLE_PRIVILEGES 
                                 TABLES 
                                 VIEW_COLUMN_USAGE 
                                 VIEW_TABLE_USAGE 
                                 VIEWS

 
演示:

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP