Products & Services Solutions Academia Support User Community Company

Learn more about Database Toolbox   

bestrowid - Unique identifier for row in database table

Syntax

b = bestrowid(dbmeta, 'cata', 'sch')
b = bestrowid(dbmeta, 'cata', 'sch', 'tab')

Description

b = bestrowid(dbmeta, 'cata', 'sch', 'tab') returns the optimal set of columns that uniquely identifies a row in table tab, in the schema sch, in the catalog cata, for the database whose database metadata object is dbmeta.

Examples

Run bestrowid, passing it the following arguments:

b = bestrowid(dbmeta, 'msdb', 'geck', 'builds') 
b =
     'build_id'

The result indicates that each entry in the build_id column is unique and identifies the row.

See Also

columns, dmd, get, tables

  


Recommended Products

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

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