zoukankan      html  css  js  c++  java
  • SQL Server INFORMATION_SCHEMA

    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

     
    演示:

  • 相关阅读:
    Oracle之PL/SQL学习笔记
    Git常用命令
    Web前端上万字的知识总结
    Objective-C中小怪兽的逻辑
    PHP精选数组函数
    数据库连接字符串方法
    WM_CAP_DRIVER_CONNECT
    GB2312/ANSI编码转中文字符
    opencv播放不了AVI视频的问题
    我的MFC/C++学习笔记 http://blog.bccn.net/CrystalFan/6909
  • 原文地址:https://www.cnblogs.com/insus/p/1923047.html
Copyright © 2011-2022 走看看