Database Toolbox Previous page   Next Page
procedurecolumns

Get catalog's stored procedure parameters and result columns

Syntax

Description

pc = procedurecolumns(dbmeta, 'cata') returns the stored procedure parameters and result columns for the catalog cata, for the database whose database metadata object is dbmeta, which was created using dmd.

pc = procedurecolumns(dbmeta, 'cata', 'sch') returns the stored procedure parameters and result columns for the schema sch, of the catalog cata, for the database whose database metadata object is dbmeta, which was created using dmd.

MATLAB returns one row for each column in the results generated by running the stored procedure.

Examples

Type

where:

MATLAB returns

The results show the stored procedure parameter and result information. Because two rows of data are returned, there will be two columns of data in the results when you run the stored procedure. From the results, you can see that running the stored procedure display returns the Month and Day. Following is a full description of the procedurecolumns results for the first row (Month).

Column
Description
Value for First Row
1
Catalog
'D:\orgdatabase\orcl'
2
Schema
'ORG'
3
Procedure name
'display'
4
Column/parameter name
'MONTH'
5
Column/parameter type
'3'
6
SQL data type
'12'
7
SQL data type name
'TEXT'
8
Precision
'50'
9
Length
'50'
10
Scale
'null'
11
Radix
'null'
12
Nullable
'1'
13
Remarks
'null'

For more information about the procedurecolumns results, see
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html for the getProcedureColumns property.

See Also
dmd, get, procedures


Previous page  primarykeys procedures Next page

© 1994-2005 The MathWorks, Inc.