Database Toolbox Previous page   Next Page
supports

Detect if property is supported by database metadata object

Syntax

Description

a = supports(dbmeta) returns a structure of the properties of dbmeta, which was created using dmd, and the corresponding property values, 1 or 0, where 1 means the property is supported and 0 means the property is not supported.

a = supports(dbmeta, 'property') returns the value, 1 or 0, of property for dbmeta, which was created using dmd, where 1 means the property is supported and 0 means the property is not supported.

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

There are dozens of properties for dbmeta. Examples include 'GroupBy' and 'StoredProcedures'.

Examples

Type

and MATLAB returns

indicating that the database supports the use of SQL group-by clauses.

To find the GroupBy value as well as values for all other properties, type

MATLAB returns a list of properties and their values. The GroupBy property is included in the list. You can also see its value by typing

to which MATLAB returns

See Also
database, dmd, get, ping


Previous page  sql2native tableprivileges Next page

© 1994-2005 The MathWorks, Inc.