Skip to Main Content Skip to Search
Product Documentation

supports - Detect whether property is supported by database metadata object

Syntax

a = supports(dbmeta)
a = supports(dbmeta, 'property')
a.property

Description

a = supports(dbmeta) returns a structure that contains the properties of dbmeta and its property values, 1 or 0. A value of 1 indicates that the property is supported, and 0 indicates that the property is not supported.

a = supports(dbmeta, 'property') returns 1 or 0 for the property field of dbmeta. A value of 1 indicates that the property is supported, and 0 indicates that the property is not supported.

a.property returns the value of property after you have created a using the supports function.

Examples

  1. Check if dbmeta supports group-by clauses.

    a = supports(dbmeta, 'GroupBy')
    a =
         1
    
  2. View the value of all properties of dbmeta.

    a = supports(dbmeta)
    

    The returned result is a list of properties and their values.

  3. See the value of the GroupBy property by running:

    a.GroupBy
    a =
         1
    

See Also

database | dmd | get | ping

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS