Skip to Main Content Skip to Search
Product Documentation

tables - Return database table names

Syntax

t = tables(dbmeta, 'cata')
t = tables(dbmeta, 'cata', 'sch')

Description

t = tables(dbmeta, 'cata') returns a list of tables and table types in the catalog cata for the database whose database metadata object is dbmeta.

t = tables(dbmeta, 'cata', 'sch') returns a list of tables and table types in the schema sch, of the catalog cata, for the database whose database metadata object is dbmeta.

Examples

Get the table names and types for the schema SCOTT in the catalog orcl, for the database metadata object dbmeta.

t = tables(dbmeta,'orcl', 'SCOTT')
t = 
    'BONUS'       'TABLE'
    'DEPT'        'TABLE'
    'EMP'         'TABLE'
    'SALGRADE'    'TABLE'
    'TRIAL'       'TABLE' 

See Also

attr | bestrowid | dmd | get | indexinfo | tableprivileges

  


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