ibm-information-center/dist/eclipse/plugins/i5OS.ic.db2_5.4.0.1/rbafzmstcatalogodbc.htm

3128 lines
90 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="keywords" content="SQLCOLPRIVILEGES, catalog view,
SQLCOLPRIVILEGES view, SQLCOLUMNS, SQLCOLUMNS view, SQLFOREIGNKEYS,
SQLFOREIGNKEYS view, SQLPRIMARYKEYS, SQLPRIMARYKEYS view, SQLPROCEDURECOLS,
SQLPROCEDURECOLUMNS view, SQLPROCEDURES, SQLPROCEDURES view, SQLSCHEMAS,
SQLSCHEMAS view, SQLSPECIALCOLUMNS, SQLSPECIALCOLUMNS view, SQLSTATISTICS,
SQLSTATISTICS view, SQLTABLEPRIVILEGES, SQLTABLEPRIVILEGES view, SQLTABLES,
SQLTABLES view, SQLTYPEINFO, catalog table, SQLTYPEINFO table, SQLUDTS,
SQLUDTS view" />
<title>ODBC and JDBC catalog views</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="catalogodbc"></a>
<h2 id="catalogodbc"><a href="rbafzmst02.htm#ToC_1543">ODBC and JDBC catalog views</a></h2>
<p>The catalog includes the following views and tables in the SYSIBM library:</p>
<a name="wq2293"></a>
<table id="wq2293" width="100%" summary="" border="0" frame="void" rules="all">
<thead valign="bottom">
<tr>
<th id="wq2294" width="35%" align="left" valign="bottom">View Name</th>
<th id="wq2295" width="64%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlcolprivileges">SQLCOLPRIVILEGES</a></td>
<td align="left" valign="top" headers="wq2295">Information about privileges granted on columns</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlcolumns">SQLCOLUMNS</a></td>
<td align="left" valign="top" headers="wq2295">Information about column attributes</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlforeignkeys">SQLFOREIGNKEYS</a></td>
<td align="left" valign="top" headers="wq2295">Information about foreign keys</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlprimarykeys">SQLPRIMARYKEYS</a></td>
<td align="left" valign="top" headers="wq2295">Information about primary keys</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlprocedurecols">SQLPROCEDURECOLS</a></td>
<td align="left" valign="top" headers="wq2295">Information about procedure parameters</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlprocedures">SQLPROCEDURES</a></td>
<td align="left" valign="top" headers="wq2295">Information about procedures</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlschemas">SQLSCHEMAS</a></td>
<td align="left" valign="top" headers="wq2295">Information about schemas</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlspecialcolumns">SQLSPECIALCOLUMNS</a></td>
<td align="left" valign="top" headers="wq2295">Information about columns of a table that
can be used to uniquely identify a row</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqlstatistics">SQLSTATISTICS</a></td>
<td align="left" valign="top" headers="wq2295">Statistical information about tables</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqltableprivileges">SQLTABLEPRIVILEGES</a></td>
<td align="left" valign="top" headers="wq2295">Information about privileges granted on tables</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqltables">SQLTABLES</a></td>
<td align="left" valign="top" headers="wq2295">Information about tables</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqltypeinfo">SQLTYPEINFO</a></td>
<td align="left" valign="top" headers="wq2295">Information about the types of tables</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2294"><a href="rbafzmstcatalogodbc.htm#catsqludts">SQLUDTS</a></td>
<td align="left" valign="top" headers="wq2295">Information about built-in data types and
distinct types</td>
</tr>
</tbody>
</table>
<a name="catsqlcolprivileges"></a>
<h3 id="catsqlcolprivileges"><a href="rbafzmst02.htm#ToC_1544">SQLCOLPRIVILEGES</a></h3><a id="idx3540" name="idx3540"></a><a id="idx3541" name="idx3541"></a>
<p>The SQLCOLPRIVILEGES view contains one row for every privileges
granted on a column. Note that this catalog view cannot be used to determine
whether a user is authorized to a column because the privilege to use a column
could be acquired through a group user profile or special authority (such
as *ALLOBJ). Furthermore, the privilege to use a column is also acquired through
privileges granted on the table. The following table describes the columns
in the view:</p>
<a name="sqllcolp"></a>
<table id="sqllcolp" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 140. SQLCOLPRIVILEGES view</caption>
<thead valign="bottom">
<tr>
<th id="wq2296" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2297" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2298" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2296">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2298">Relational database name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2298">Name of the SQL schema that contains the
table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2298">Table name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2298">Column name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">GRANTOR</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2298">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">GRANTEE</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2298">The user profile to which the privilege is
granted.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">PRIVILEGE</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(10)</td>
<td align="left" valign="top" headers="wq2298">The privilege granted:
<dl>
<dt class="bold">UPDATE</dt>
<dd>The privilege to update the column.
</dd>
<dt class="bold">REFERENCES</dt>
<dd>The privilege to reference the column in a referential constraint.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">IS_GRANTABLE</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(3)</td>
<td align="left" valign="top" headers="wq2298">Indicates whether the privilege is grantable
to other users.
<dl>
<dt class="bold">NO</dt>
<dd>The privilege is not grantable.
</dd>
<dt class="bold">YES</dt>
<dd>The privilege is grantable.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2296">DBNAME</td>
<td align="left" valign="top" headers="wq2297">VARCHAR(8)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2298">Reserved. The column contains the null value.</td>
</tr>
</tbody>
</table>
<a name="catsqlcolumns"></a>
<h3 id="catsqlcolumns"><a href="rbafzmst02.htm#ToC_1545">SQLCOLUMNS</a></h3><a id="idx3542" name="idx3542"></a><a id="idx3543" name="idx3543"></a>
<p>The SQLCOLUMNS view contains one row for every column in a table, view,
or alias. The following table describes the columns in the view:</p>
<a name="sqlcol"></a>
<table id="sqlcol" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 141. SQLCOLUMNS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2299" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2300" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2301" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2299">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2301">Relational database name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2301">Name of the SQL schema that contains the
table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2301">Table name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2301">Column name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">DATA_TYPE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">The data type of the column:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">40</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">30</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
<dt class="bold">17</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(260)</td>
<td align="left" valign="top" headers="wq2301">The name of the data type of the column:
<dl>
<dt class="bold">BIGINT</dt>
<dd>BIGINT
</dd>
<dt class="bold">INTeger</dt>
<dd>INTEGER
</dd>
<dt class="bold">SMALLINT</dt>
<dd>SMALLINT
</dd>
<dt class="bold">DECIMAL</dt>
<dd>DECIMAL
</dd>
<dt class="bold">NUMERIC</dt>
<dd>NUMERIC
</dd>
<dt class="bold">FLOAT</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">REAL</dt>
<dd>REAL
</dd>
<dt class="bold">CHARacter</dt>
<dd>CHARACTER
</dd>
<dt class="bold">CHARacter FOR BIT DATA</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">VARCHAR</dt>
<dd>VARCHAR
</dd>
<dt class="bold">VARCHAR FOR BIT DATA</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">CLOB</dt>
<dd>CLOB
</dd>
<dt class="bold">GRAPHIC</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">VARGRAPHIC</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">DBCLOB</dt>
<dd>DBCLOB
</dd>
<dt class="bold">BINARY</dt>
<dd>BINARY
</dd>
<dt class="bold">VARBINARY</dt>
<dd>VARBINARY
</dd>
<dt class="bold">BLOB</dt>
<dd>BLOB
</dd>
<dt class="bold">DATE</dt>
<dd>DATE
</dd>
<dt class="bold">TIME</dt>
<dd>TIME
</dd>
<dt class="bold">TIMESTAMP</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">DATALINK</dt>
<dd>DATALINK
</dd>
<dt class="bold">ROWID</dt>
<dd>ROWID
</dd>
<dt class="bold">Qualified Type Name</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">COLUMN_SIZE</td>
<td align="left" valign="top" headers="wq2300">INTEGER</td>
<td align="left" valign="top" headers="wq2301">The length of the column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">BUFFER_LENGTH</td>
<td align="left" valign="top" headers="wq2300">INTEGER</td>
<td align="left" valign="top" headers="wq2301">Indicates the length of the column in a buffer.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">DECIMAL_DIGITS</td>
<td align="left" valign="top" headers="wq2300">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Indicates the number of digits for a numeric
column.
<p>Contains the null value if the object is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">NUM_PREC_RADIX</td>
<td align="left" valign="top" headers="wq2300">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Indicates the radix of a numeric column.
<p>Contains the null value if the object is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">NULLABLE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">Indicates whether the column can contain
the null value.
<dl>
<dt class="bold">0</dt>
<dd>The column does not allow nulls.
</dd>
<dt class="bold">1</dt>
<dd>The column does allow nulls.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">REMARKS</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">A character string supplied with the COMMENT
statement.
<p>Contains the null value if there is no long comment.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">COLUMN_DEF</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">The default value of the column.
<p>Contains
the null value if there is no default value.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SQL_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">Indicates the SQL data type of the column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SQL_DATETIME_SUB</td>
<td align="left" valign="top" headers="wq2300">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">The datetime subtype of the data type:
<dl>
<dt class="bold">1</dt>
<dd>DATE
</dd>
<dt class="bold">2</dt>
<dd>TIME
</dd>
<dt class="bold">3</dt>
<dd>TIMESTAMP
</dd>
</dl>
<p>Contains the null value if the column is not a datetime data type.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">CHAR_OCTET_LENGTH</td>
<td align="left" valign="top" headers="wq2300">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Indicates the length in characters of the
column.
<p>Contains the null value if the column is not a string.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">ORDINAL_POSITION</td>
<td align="left" valign="top" headers="wq2300">INTEGER</td>
<td align="left" valign="top" headers="wq2301">Indicates the ordinal position of the column
in the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">IS_NULLABLE</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(3)</td>
<td align="left" valign="top" headers="wq2301">Indicates whether the column can contain
the null value.
<dl>
<dt class="bold">NO</dt>
<dd>The column is not nullable.
</dd>
<dt class="bold">YES</dt>
<dd>The column is nullable.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">JDBC_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">Indicates the JDBC data type of the column.
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">2005</dt>
<dd>CLOB
</dd>
<dt class="bold">1</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">12</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">1111</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">2004</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SCOPE_CATALOG</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SCOPE_SCHEMA</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SCOPE_TABLE</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SOURCE_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">The source data type if the data type of
the column is a distinct type.
<p>Contains the null value if the data type
is not a distinct type.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">DBNAME</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(8)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">PSEUDO_COLUMN</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">Indicates whether this is a ROWID or identity
column.
<dl>
<dt class="bold">1</dt>
<dd>The column is not a ROWID or identity column.
</dd>
<dt class="bold">2</dt>
<dd>The column is a ROWID or identity column.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">COLUMN_TEXT</td>
<td align="left" valign="top" headers="wq2300">VARCHAR(50)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2301">The text of the column.
<p>Contains the null
value if the column has no column text.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">SYSTEM_COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2300">CHAR(10)</td>
<td align="left" valign="top" headers="wq2301">The system name of the column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2299">I_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2300">SMALLINT</td>
<td align="left" valign="top" headers="wq2301">Indicates the iSeries&trade; CLI data type of the column.
<dl>
<dt class="bold">19</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">14</dt>
<dd>CLOB
</dd>
<dt class="bold">95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">15</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">13</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">16</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
</tbody>
</table>
<a name="catsqlforeignkeys"></a>
<h3 id="catsqlforeignkeys"><a href="rbafzmst02.htm#ToC_1546">SQLFOREIGNKEYS</a></h3><a id="idx3544" name="idx3544"></a><a id="idx3545" name="idx3545"></a>
<p>The SQLFOREIGNKEYS view contains one row for every referential constraint
key on a table. The following table describes the columns in the view:</p>
<a name="sqlfork"></a>
<table id="sqlfork" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 142. SQLFOREIGNKEYS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2302" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2303" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2304" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2302">PKTABLE_CAT</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">PKTABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Name of the SQL schema containing the parent
table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">PKTABLE_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Parent table name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">PKCOLUMN_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Parent key column name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">FKTABLE_CAT</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">FKTABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Name of the SQL schema containing the dependent
table of the referential constraint.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">FKTABLE_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Dependent table name of the referential constraint.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">FKCOLUMN_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Dependent key name.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">KEY_SEQ</td>
<td align="left" valign="top" headers="wq2303">SMALLINT</td>
<td align="left" valign="top" headers="wq2304">The position of the column within the key.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">UPDATE_RULE</td>
<td align="left" valign="top" headers="wq2303">SMALLINT</td>
<td align="left" valign="top" headers="wq2304">Update Rule.
<dl>
<dt class="bold">1</dt>
<dd>RESTRICT
</dd>
<dt class="bold">3</dt>
<dd>NO ACTION
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">DELETE_RULE</td>
<td align="left" valign="top" headers="wq2303">SMALLINT</td>
<td align="left" valign="top" headers="wq2304">Delete Rule:
<dl>
<dt class="bold">0</dt>
<dd>CASCADE
</dd>
<dt class="bold">1</dt>
<dd>RESTRICT
</dd>
<dt class="bold">2</dt>
<dd>SET NULL
</dd>
<dt class="bold">3</dt>
<dd>NO ACTION
</dd>
<dt class="bold">4</dt>
<dd>SET DEFAULT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">FK_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Name of the referential constraint</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">PK_NAME</td>
<td align="left" valign="top" headers="wq2303">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2304">Name of the unique constraint</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">DEFERRABILITY</td>
<td align="left" valign="top" headers="wq2303">SMALLINT</td>
<td align="left" valign="top" headers="wq2304">Indicates whether the constraint checking
can be deferred. Will always be 7.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2302">UNIQUE_OR_PRIMARY</td>
<td align="left" valign="top" headers="wq2303">CHAR(7)</td>
<td align="left" valign="top" headers="wq2304">Indicates the type of parent constraint:
<dl>
<dt class="bold">PRIMARY</dt>
<dd>The parent constraint is a primary key.
</dd>
<dt class="bold">UNIQUE</dt>
<dd>The parent constraint is a unique constraint.
</dd>
</dl></td>
</tr>
</tbody>
</table>
<a name="catsqlprimarykeys"></a>
<h3 id="catsqlprimarykeys"><a href="rbafzmst02.htm#ToC_1547">SQLPRIMARYKEYS</a></h3><a id="idx3546" name="idx3546"></a><a id="idx3547" name="idx3547"></a>
<p>The SQLPRIMARYKEYS view contains one row for every primary constraint key
on a table. The following table describes the columns in the view:</p>
<a name="sqlprik"></a>
<table id="sqlprik" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 143. SQLPRIMARYKEYS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2305" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2306" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2307" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2305">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2306">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2307">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2305">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2306">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2307">Name of the schema containing the table with
the primary key.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2305">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2306">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2307">Name of the table with the primary key.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2305">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2306">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2307">Name of a primary key column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2305">KEY_SEQ</td>
<td align="left" valign="top" headers="wq2306">SMALLINT</td>
<td align="left" valign="top" headers="wq2307">The position of the column within the key.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2305">PK_NAME</td>
<td align="left" valign="top" headers="wq2306">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2307">Name of the primary key constraint.</td>
</tr>
</tbody>
</table>
<a name="catsqlprocedurecols"></a>
<h3 id="catsqlprocedurecols"><a href="rbafzmst02.htm#ToC_1548">SQLPROCEDURECOLS</a></h3><a id="idx3548" name="idx3548"></a><a id="idx3549" name="idx3549"></a>
<p>The SQLPROCEDURECOLS view contains one row for every parameter of a procedure.
The following table describes the columns in the view:</p>
<a name="sqlpcol"></a>
<table id="sqlpcol" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 144. SQLPROCEDURECOLS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2308" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2309" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2310" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2308">PROCEDURE_CAT</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2310">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">PROCEDURE_SCHEM</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2310">Schema name of the procedure instance.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">PROCEDURE_NAME</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2310">Name of the procedure instance.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Name of a procedure parameter.
<p>Contains
the null value if the parameter does not have a name.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">COLUMN_TYPE</td>
<td align="left" valign="top" headers="wq2309">SMALLINT</td>
<td align="left" valign="top" headers="wq2310">Type of the parameter:
<dl>
<dt class="bold">1</dt>
<dd>IN
</dd>
<dt class="bold">2</dt>
<dd>INOUT
</dd>
<dt class="bold">4</dt>
<dd>OUT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">DATA_TYPE</td>
<td align="left" valign="top" headers="wq2309">SMALLINT</td>
<td align="left" valign="top" headers="wq2310">The data type of the parameter:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">40</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">30</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
<dt class="bold">17</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(260)</td>
<td align="left" valign="top" headers="wq2310">The name of the data type of the parameter:
<dl>
<dt class="bold">BIGINT</dt>
<dd>BIGINT
</dd>
<dt class="bold">INTeger</dt>
<dd>INTEGER
</dd>
<dt class="bold">SMALLINT</dt>
<dd>SMALLINT
</dd>
<dt class="bold">DECIMAL</dt>
<dd>DECIMAL
</dd>
<dt class="bold">NUMERIC</dt>
<dd>NUMERIC
</dd>
<dt class="bold">FLOAT</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">REAL</dt>
<dd>REAL
</dd>
<dt class="bold">CHARacter</dt>
<dd>CHARACTER
</dd>
<dt class="bold">CHARacter FOR BIT DATA</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">VARCHAR</dt>
<dd>VARCHAR
</dd>
<dt class="bold">VARCHAR FOR BIT DATA</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">CLOB</dt>
<dd>CLOB
</dd>
<dt class="bold">GRAPHIC</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">VARGRAPHIC</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">DBCLOB</dt>
<dd>DBCLOB
</dd>
<dt class="bold">BINARY</dt>
<dd>BINARY
</dd>
<dt class="bold">VARBINARY</dt>
<dd>VARBINARY
</dd>
<dt class="bold">BLOB</dt>
<dd>BLOB
</dd>
<dt class="bold">DATE</dt>
<dd>DATE
</dd>
<dt class="bold">TIME</dt>
<dd>TIME
</dd>
<dt class="bold">TIMESTAMP</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">DATALINK</dt>
<dd>DATALINK
</dd>
<dt class="bold">ROWID</dt>
<dd>ROWID
</dd>
<dt class="bold">Qualified Type Name</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">COLUMN_SIZE</td>
<td align="left" valign="top" headers="wq2309">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Length of the parameter.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">BUFFER_LENGTH</td>
<td align="left" valign="top" headers="wq2309">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Indicates the length of the parameter in
a buffer.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">DECIMAL_DIGITS</td>
<td align="left" valign="top" headers="wq2309">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Scale of numeric or datetime data.
<p>Contains
the null value if the parameter is not decimal, numeric, binary, time or timestamp.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">NUM_PREC_RADIX</td>
<td align="left" valign="top" headers="wq2309">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Indicates if the precision specified in column
NUMERIC_PRECISION is specified as a number of binary or decimal digits:
<dl>
<dt class="bold">2</dt>
<dd>Binary; floating-point precision is specified in binary digits.
</dd>
<dt class="bold">10</dt>
<dd>Decimal; all other numeric types are specified in decimal digits.
</dd>
</dl>
<p>Contains the null value if the parameter is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">NULLABLE</td>
<td align="left" valign="top" headers="wq2309">SMALLINT</td>
<td align="left" valign="top" headers="wq2310">Indicates whether the parameter is nullable.
<dl>
<dt class="bold">0</dt>
<dd>The parameter does not allow nulls.
</dd>
<dt class="bold">1</dt>
<dd>The parameter does allow nulls.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">REMARKS</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">A character string supplied with the COMMENT
statement.
<p>Contains the null value if there is no long comment.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">COLUMN_DEF</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(1)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">The default value for the column.
<p>Contains
the null value if there is no default value.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">SQL_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2309">SMALLINT</td>
<td align="left" valign="top" headers="wq2310">The SQL data type of the parameter:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">&ndash;99</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">&ndash;98</dt>
<dd>BLOB
</dd>
<dt class="bold">9</dt>
<dd>DATE
</dd>
<dt class="bold">10</dt>
<dd>TIME
</dd>
<dt class="bold">11</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
<dt class="bold">17</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">SQL_DATETIME_SUB</td>
<td align="left" valign="top" headers="wq2309">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">The datetime subtype of the parameter:
<dl>
<dt class="bold">1</dt>
<dd>DATE
</dd>
<dt class="bold">2</dt>
<dd>TIME
</dd>
<dt class="bold">3</dt>
<dd>TIMESTAMP
</dd>
</dl>
<p>Contains the null value if the data type is not a datetime data type.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">CHAR_OCTET_LENGTH</td>
<td align="left" valign="top" headers="wq2309">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2310">Indicates the length in characters of the
parameter.
<p>Contains the null value if the column is not a string.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">ORDINAL_POSITION</td>
<td align="left" valign="top" headers="wq2309">INTEGER</td>
<td align="left" valign="top" headers="wq2310">Numeric place of the parameter in the parameter
list, ordered from left to right.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">IS_NULLABLE</td>
<td align="left" valign="top" headers="wq2309">VARCHAR(3)</td>
<td align="left" valign="top" headers="wq2310">Indicates whether the parameter is nullable.
<dl>
<dt class="bold">NO</dt>
<dd>The parameter does not allow nulls.
</dd>
<dt class="bold">YES</dt>
<dd>The parameter does allow nulls.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">JDBC_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2309">INTEGER</td>
<td align="left" valign="top" headers="wq2310">The JDBC data type of the parameter:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">2005</dt>
<dd>CLOB
</dd>
<dt class="bold">1</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">12</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">1111</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">2004</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2308">I_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2309">INTEGER</td>
<td align="left" valign="top" headers="wq2310">Indicates the iSeries CLI data type of the column.
<dl>
<dt class="bold">19</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">14</dt>
<dd>CLOB
</dd>
<dt class="bold">95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">15</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">13</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">16</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
</tbody>
</table>
<a name="catsqlprocedures"></a>
<h3 id="catsqlprocedures"><a href="rbafzmst02.htm#ToC_1549">SQLPROCEDURES</a></h3><a id="idx3550" name="idx3550"></a><a id="idx3551" name="idx3551"></a>
<p>The SQLPROCEDURES view contains one row for every procedure. The following
table describes the columns in the view:</p>
<a name="sqlpros"></a>
<table id="sqlpros" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 145. SQLPROCEDURES view</caption>
<thead valign="bottom">
<tr>
<th id="wq2311" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2312" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2313" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2311">PROCEDURE_CAT</td>
<td align="left" valign="top" headers="wq2312">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2313">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">PROCEDURE_SCHEM</td>
<td align="left" valign="top" headers="wq2312">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2313">Name of the schema of the procedure instance.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">PROCEDURE_NAME</td>
<td align="left" valign="top" headers="wq2312">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2313">Name of the procedure.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">NUM_INPUT_PARAMS</td>
<td align="left" valign="top" headers="wq2312">SMALLINT</td>
<td headers="wq2313">Identifies the number of input parameters. 0 indicates that there are
no input parameters.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">NUM_OUTPUT_PARAMS</td>
<td align="left" valign="top" headers="wq2312">SMALLINT</td>
<td align="left" valign="top" headers="wq2313">Identifies the number of output parameters.
0 indicates that there are no output parameters.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">NUM_RESULT_SETS</td>
<td align="left" valign="top" headers="wq2312">SMALLINT</td>
<td headers="wq2313">Identifies the maximum number of result sets returned. 0 indicates
that there are no result sets.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">REMARKS</td>
<td align="left" valign="top" headers="wq2312">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2313">A character string supplied with the COMMENT statement.
<p>Contains
the null value if there is no long comment.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">PROCEDURE_TYPE</td>
<td align="left" valign="top" headers="wq2312">SMALLINT</td>
<td align="left" valign="top" headers="wq2313">Reserved. Contains 0.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2311">NUM_INOUT_PARAMS</td>
<td align="left" valign="top" headers="wq2312">SMALLINT</td>
<td headers="wq2313">Identifies the number of input/output parameters. 0 indicates that
there are no input/output parameters.</td>
</tr>
</tbody>
</table>
<a name="catsqlschemas"></a>
<h3 id="catsqlschemas"><a href="rbafzmst02.htm#ToC_1550">SQLSCHEMAS</a></h3><a id="idx3552" name="idx3552"></a><a id="idx3553" name="idx3553"></a>
<p>The SQLSCHEMAS view contains one row for every schema. The following table
describes the columns in the view:</p>
<a name="sqlsch"></a>
<table id="sqlsch" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 146. SQLSCHEMAS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2314" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2315" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2316" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2314">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2316">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2316">Name of the schema.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TABLE_TYPE</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">REMARKS</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TYPE_CAT</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TYPE_SCHEM</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">SELF_REF_COL_NAME</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">REF_GENERATION</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">DBNAME</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(8)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2316">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2314">SCHEMA_TEXT</td>
<td align="left" valign="top" headers="wq2315">VARCHAR(50)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2316">A character string that describes the schema.
<p>Contains the empty
string if there is no text.</p></td>
</tr>
</tbody>
</table>
<a name="catsqlspecialcolumns"></a>
<h3 id="catsqlspecialcolumns"><a href="rbafzmst02.htm#ToC_1551">SQLSPECIALCOLUMNS</a></h3><a id="idx3554" name="idx3554"></a><a id="idx3555" name="idx3555"></a>
<p>The SQLSPECIALCOLUMNS view contains one row for every column of a primary
key, unique constraint, or unique index that can identify a row of the table.
The following table describes the columns in the view:</p>
<a name="sqlscol"></a>
<table id="sqlscol" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 147. SQLSPECIALCOLUMNS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2317" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2318" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2319" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2317">SCOPE</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td align="left" valign="top" headers="wq2319">Reserved. Contains 0.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2318">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2319">Column name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">DATA_TYPE</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td headers="wq2319">The data type of the column:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">40</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">30</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
<dt class="bold">17</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2318">VARCHAR(260)</td>
<td align="left" valign="top" headers="wq2319">The name of the data type of the column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">COLUMN_SIZE</td>
<td align="left" valign="top" headers="wq2318">INTEGER</td>
<td align="left" valign="top" headers="wq2319">The length of the column.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">BUFFER_LENGTH</td>
<td align="left" valign="top" headers="wq2318">INTEGER</td>
<td headers="wq2319">Indicates the length of the column in a buffer.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">DECIMAL_DIGITS</td>
<td align="left" valign="top" headers="wq2318">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2319">Indicates the number of digits for a numeric column.
<p>Contains the
null value if the column is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">PSEUDO_COLUMN</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td align="left" valign="top" headers="wq2319">Indicates whether this is a ROWID or identity
column.
<dl>
<dt class="bold">1</dt>
<dd>The column is not a ROWID or identity column.
</dd>
<dt class="bold">2</dt>
<dd>The column is a ROWID or identity column.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2318">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2319">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2318">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2319">Name of the SQL schema that contains the
table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2318">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2319">Name of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">NULLABLE</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td align="left" valign="top" headers="wq2319">Indicates whether the column can contain
the null value.
<dl>
<dt class="bold">0</dt>
<dd>The column is not nullable.
</dd>
<dt class="bold">1</dt>
<dd>The column is nullable.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">JDBC_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td align="left" valign="top" headers="wq2319">Indicates the JDBC data type of the column.
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">2005</dt>
<dd>CLOB
</dd>
<dt class="bold">1</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">12</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">1111</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">2004</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2317">I_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2318">SMALLINT</td>
<td align="left" valign="top" headers="wq2319">Indicates the iSeries CLI data type of the column.
<dl>
<dt class="bold">19</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">14</dt>
<dd>CLOB
</dd>
<dt class="bold">95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">15</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">13</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">16</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
</tbody>
</table>
<a name="catsqlstatistics"></a>
<h3 id="catsqlstatistics"><a href="rbafzmst02.htm#ToC_1552">SQLSTATISTICS</a></h3><a id="idx3556" name="idx3556"></a><a id="idx3557" name="idx3557"></a>
<p>The SQLSTATISTICS view contains statistic information on a table. The following
table describes the columns in the view:</p>
<a name="sqlstat"></a>
<table id="sqlstat" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 148. SQLSTATISTICS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2320" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2321" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2322" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2320">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2322">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2322">Name of the SQL schema of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2322">Name of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">NON_UNIQUE</td>
<td align="left" valign="top" headers="wq2321">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Indicates whether an index prohibits duplicate
keys on the table.
<p>Contains the null value if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">INDEX_QUALIFIER</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Name of the schema of the index.
<p>Contains
the null value if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">INDEX_NAME</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Name of the index.
<p>Contains the null value
if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">TYPE</td>
<td align="left" valign="top" headers="wq2321">SMALLINT</td>
<td align="left" valign="top" headers="wq2322">Indicates the type of information returned:
<dl>
<dt class="bold">0</dt>
<dd>The number of rows in the table.
</dd>
<dt class="bold">3</dt>
<dd>An index on the table.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">ORDINAL_POSITION</td>
<td align="left" valign="top" headers="wq2321">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Indicates the ordinal position of the key
in the index.
<p>Contains the null value if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">COLUMN_NAME</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Name of the column for a key in the index.
<p>Contains the null value if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">ASC_OR_DESC</td>
<td align="left" valign="top" headers="wq2321">CHAR(1)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Order of the column in the key:
<dl>
<dt class="bold">A</dt>
<dd>Ascending
</dd>
<dt class="bold">D</dt>
<dd>Descending
</dd>
</dl>
<p>Contains the null value if the TYPE is 0.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">CARDINALITY</td>
<td align="left" valign="top" headers="wq2321">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">PAGES</td>
<td align="left" valign="top" headers="wq2321">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2320">FILTER_CONDITION</td>
<td align="left" valign="top" headers="wq2321">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2322">Indicates whether the index is a select/omit
index.
<dl>
<dt class="bold">empty-string</dt>
<dd>This is a select/omit index.
</dd>
</dl>
<p>Contains the null value if the TYPE is 0 or this is not a select/omit
index.</p></td>
</tr>
</tbody>
</table>
<a name="catsqltableprivileges"></a>
<h3 id="catsqltableprivileges"><a href="rbafzmst02.htm#ToC_1553">SQLTABLEPRIVILEGES</a></h3><a id="idx3558" name="idx3558"></a><a id="idx3559" name="idx3559"></a>
<p>The SQLTABLEPRIVILEGES view contains one row for every privilege
granted on a table. Note that this catalog view cannot be used to determine
whether a user is authorized to a table or view because the privilege to use
a table or view could be acquired through a group user profile or special
authority (such as *ALLOBJ). The following table describes the columns in
the view:</p>
<a name="sqltblp"></a>
<table id="sqltblp" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 149. SQLTABLEPRIVILEGES view</caption>
<thead valign="bottom">
<tr>
<th id="wq2323" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2324" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2325" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2323">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2325">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2325">Name of the SQL schema of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2325">Name of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">GRANTOR</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2325">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">GRANTEE</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2325">The user profile to which the privilege is
granted.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">PRIVILEGE</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(10)</td>
<td align="left" valign="top" headers="wq2325">The privilege granted:
<dl>
<dt class="bold">ALTER</dt>
<dd>The privilege to alter the table.
</dd>
<dt class="bold">DELETE</dt>
<dd>The privilege to delete rows from the table.
</dd>
<dt class="bold">INDEX</dt>
<dd>The privilege to create an index on the table.
</dd>
<dt class="bold">INSERT</dt>
<dd>The privilege to insert rows into the table.
</dd>
<dt class="bold">REFERENCES</dt>
<dd>The privilege to reference the table in a referential constraint.
</dd>
<dt class="bold">SELECT</dt>
<dd>The privilege to select rows from the table.
</dd>
<dt class="bold">UPDATE</dt>
<dd>The privilege to update the table.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">IS_GRANTABLE</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(3)</td>
<td headers="wq2325">Indicates whether the privilege is grantable to other users.
<dl>
<dt class="bold">NO</dt>
<dd>The privilege is not grantable.
</dd>
<dt class="bold">YES</dt>
<dd>The privilege is grantable.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2323">DBNAME</td>
<td align="left" valign="top" headers="wq2324">VARCHAR(8)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2325">Reserved. Contains the null value.</td>
</tr>
</tbody>
</table>
<a name="catsqltables"></a>
<h3 id="catsqltables"><a href="rbafzmst02.htm#ToC_1554">SQLTABLES</a></h3><a id="idx3560" name="idx3560"></a><a id="idx3561" name="idx3561"></a>
<p>The SQLTABLES view contains one row for every table, view, and alias. The
following table describes the columns in the view:</p>
<a name="sqltbl"></a>
<table id="sqltbl" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 150. SQLTABLES view</caption>
<thead valign="bottom">
<tr>
<th id="wq2326" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2327" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2328" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2326">TABLE_CAT</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2328">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TABLE_SCHEM</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2328">Name of the schema containing the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TABLE_NAME</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2328">Name of the table.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TABLE_TYPE</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(24)</td>
<td headers="wq2328">Indicates the type of the table:
<dl>
<dt class="bold">ALIAS</dt>
<dd>The table is an alias.
</dd>
<dt class="bold">MATERIALIZED QUERY TABLE</dt>
<dd>The object is a materialized query table.
</dd>
<dt class="bold">TABLE</dt>
<dd>The table is an SQL table or physical file.
</dd>
<dt class="bold">VIEW</dt>
<dd>The table is an SQL view or logical file.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">REMARKS</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2328">A character string supplied with the COMMENT
statement.
<p>Contains the null value if there is no long comment.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TYPE_CAT</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TYPE_SCHEM</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">SELF_REF_COL_NAME</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">REF_GENERATION</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">DBNAME</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(8)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2328">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2326">TABLE_TEXT</td>
<td align="left" valign="top" headers="wq2327">VARCHAR(50)</td>
<td align="left" valign="top" headers="wq2328">A character string provided with the LABEL
statement.</td>
</tr>
</tbody>
</table>
<a name="catsqltypeinfo"></a>
<h3 id="catsqltypeinfo"><a href="rbafzmst02.htm#ToC_1555">SQLTYPEINFO</a></h3><a id="idx3562" name="idx3562"></a><a id="idx3563" name="idx3563"></a>
<p>The SQLTYPEINFO table contains one row for every built-in data
type. The following table describes the columns in the table:</p>
<a name="sqltypi"></a>
<table id="sqltypi" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 151. SQLTYPEINFO table</caption>
<thead valign="bottom">
<tr>
<th id="wq2329" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2330" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2331" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2329">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2330">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2331">Name of the built-in data type:
<dl>
<dt class="bold">BIGINT</dt>
<dd>BIGINT
</dd>
<dt class="bold">INTeger</dt>
<dd>INTEGER
</dd>
<dt class="bold">SMALLINT</dt>
<dd>SMALLINT
</dd>
<dt class="bold">DECIMAL</dt>
<dd>DECIMAL
</dd>
<dt class="bold">NUMERIC</dt>
<dd>NUMERIC
</dd>
<dt class="bold">FLOAT</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">REAL</dt>
<dd>REAL
</dd>
<dt class="bold">CHARacter</dt>
<dd>CHARACTER
</dd>
<dt class="bold">CHARacter FOR BIT DATA</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">VARCHAR</dt>
<dd>VARCHAR
</dd>
<dt class="bold">VARCHAR FOR BIT DATA</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">CLOB</dt>
<dd>CLOB
</dd>
<dt class="bold">GRAPHIC</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">VARGRAPHIC</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">DBCLOB</dt>
<dd>DBCLOB
</dd>
<dt class="bold">BINARY</dt>
<dd>BINARY
</dd>
<dt class="bold">VARBINARY</dt>
<dd>VARBINARY
</dd>
<dt class="bold">BLOB</dt>
<dd>BLOB
</dd>
<dt class="bold">DATE</dt>
<dd>DATE
</dd>
<dt class="bold">TIME</dt>
<dd>TIME
</dd>
<dt class="bold">TIMESTAMP</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">DATALINK</dt>
<dd>DATALINK
</dd>
<dt class="bold">ROWID</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">DATA_TYPE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT</td>
<td align="left" valign="top" headers="wq2331">The data type of the column:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">40</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">30</dt>
<dd>BLOB
</dd>
<dt class="bold">9</dt>
<dd>DATE
</dd>
<dt class="bold">10</dt>
<dd>TIME
</dd>
<dt class="bold">11</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">COLUMN_SIZE</td>
<td align="left" valign="top" headers="wq2330">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">The maximum length of the data type.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">LITERAL_PREFIX</td>
<td align="left" valign="top" headers="wq2330">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the prefix for a string literal.
<p>Contains the null value if the data type is not a string.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">LITERAL_SUFFIX</td>
<td align="left" valign="top" headers="wq2330">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the suffix for a string literal.
<p>Contains the null value if the data type is not a string.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">CREATE_PARAMS</td>
<td align="left" valign="top" headers="wq2330">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the parameters supported with the
data type.
<dl>
<dt class="bold">length</dt>
<dd>The parameter is a length. Returned for all string data types and DATALINK.
</dd>
<dt class="bold">precision,scale</dt>
<dd>The parameters include precision and scale. Returned for the DECIMAL
and NUMERIC data types.
</dd>
</dl>
<p>Contains the null value for all other data types.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">NULLABLE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates whether the data type is nullable.
<dl>
<dt class="bold">0</dt>
<dd>The data type does not allow nulls.
</dd>
<dt class="bold">1</dt>
<dd>The data type does allow nulls.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">CASE_SENSITIVE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates whether the data type is case sensitive.
<dl>
<dt class="bold">0</dt>
<dd>The data type is not case sensitive.
</dd>
<dt class="bold">1</dt>
<dd>The data type is case sensitive.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">SEARCHABLE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates whether the data type can be used
in a predicate.
<dl>
<dt class="bold">0</dt>
<dd>The data type cannot be used in predicates.
</dd>
<dt class="bold">2</dt>
<dd>The data type can be used in all predicates except the LIKE predicate.
</dd>
<dt class="bold">3</dt>
<dd>The data type can be used in all predicates including the LIKE predicate.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">UNSIGNED_ATTRIBUTE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates whether the numeric data type is
signed or unsigned.
<dl>
<dt class="bold">0</dt>
<dd>The data type is signed.
</dd>
<dt class="bold">1</dt>
<dd>The data type is unsigned.
</dd>
</dl>
<p>Contains the null value if the data type is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">FIXED_PREC_SCALE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT</td>
<td align="left" valign="top" headers="wq2331">Indicates whether the data type has a fixed
precision and scale.
<dl>
<dt class="bold">0</dt>
<dd>The data type does not have a fixed precision and scale.
</dd>
<dt class="bold">1</dt>
<dd>The data type does have a fixed precision and scale.
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">AUTO_UNIQUE_VALUE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates whether the numeric data type is
auto-incrementing:
<dl>
<dt class="bold">0</dt>
<dd>The data type is not auto-incrementing.
</dd>
<dt class="bold">1</dt>
<dd>The data type is auto-incrementing.
</dd>
</dl>
<p>Contains the null value if the data type is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">LOCAL_TYPE_NAME</td>
<td align="left" valign="top" headers="wq2330">VARCHAR(128)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">MINIMUM_SCALE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the minimum scale of numeric data
types.
<p>Contains the null value if the data type is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">MAXIMUM_SCALE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the maximum scale of numeric data
types.
<p>Contains the null value if the data type is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">SQL_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates the SQL data type value of the
data type:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">&ndash;99</dt>
<dd>CLOB
</dd>
<dt class="bold">&ndash;95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">&ndash;96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">&ndash;350</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">&ndash;98</dt>
<dd>BLOB
</dd>
<dt class="bold">9</dt>
<dd>DATE
</dd>
<dt class="bold">10</dt>
<dd>TIME
</dd>
<dt class="bold">11</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">&ndash;100</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">SQL_DATETIME_SUB</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">The datetime subtype of the data type:
<dl>
<dt class="bold">1</dt>
<dd>DATE
</dd>
<dt class="bold">2</dt>
<dd>TIME
</dd>
<dt class="bold">3</dt>
<dd>TIMESTAMP
</dd>
</dl>
<p>Contains the null value if the data type is not a datetime data type.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">NUM_PREC_RADIX</td>
<td align="left" valign="top" headers="wq2330">INTEGER
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Indicates if the precision specified in column
NUMERIC_PRECISION is specified as a number of binary or decimal digits:
<dl>
<dt class="bold">2</dt>
<dd>Binary; floating-point precision is specified in binary digits.
</dd>
<dt class="bold">10</dt>
<dd>Decimal; all other numeric types are specified in decimal digits.
</dd>
</dl>
<p>Contains the null value if the parameter is not numeric.</p></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">INTERVAL_PRECISION</td>
<td align="left" valign="top" headers="wq2330">SMALLINT
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2331">Reserved. Contains the null value.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">JDBC_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT</td>
<td align="left" valign="top" headers="wq2331">The JDBC data type value of the data type:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">2005</dt>
<dd>CLOB
</dd>
<dt class="bold">1</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">12</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">1111</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">2004</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2329">I_DATA_TYPE</td>
<td align="left" valign="top" headers="wq2330">SMALLINT</td>
<td align="left" valign="top" headers="wq2331">Indicates the iSeries CLI data type of the column.
<dl>
<dt class="bold">19</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">14</dt>
<dd>CLOB
</dd>
<dt class="bold">95</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">96</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">15</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">13</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">16</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
<dt class="bold">2001</dt>
<dd>DISTINCT
</dd>
</dl></td>
</tr>
</tbody>
</table>
<a name="catsqludts"></a>
<h3 id="catsqludts"><a href="rbafzmst02.htm#ToC_1556">SQLUDTS</a></h3><a id="idx3564" name="idx3564"></a><a id="idx3565" name="idx3565"></a>
<p>The SQLUDTS view contains one row for every distinct type. The following
table describes the columns in the view:</p>
<a name="sqludts"></a>
<table id="sqludts" width="100%" summary="" border="0" frame="void" rules="rows">
<caption>Table 152. SQLUDTS view</caption>
<thead valign="bottom">
<tr>
<th id="wq2332" width="36%" align="left" valign="bottom">Column Name</th>
<th id="wq2333" width="14%" align="left" valign="bottom">Data Type</th>
<th id="wq2334" width="49%" align="left" valign="bottom">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left" valign="top" headers="wq2332">TYPE_CAT</td>
<td align="left" valign="top" headers="wq2333">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2334">Relational database name</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">TYPE_SCHEM</td>
<td align="left" valign="top" headers="wq2333">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2334">Name of the schema containing the user-defined
type.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">TYPE_NAME</td>
<td align="left" valign="top" headers="wq2333">VARCHAR(128)</td>
<td align="left" valign="top" headers="wq2334">Name of the user-defined type.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">CLASS_NAME</td>
<td align="left" valign="top" headers="wq2333">VARCHAR(20)</td>
<td align="left" valign="top" headers="wq2334">Java&trade; class name of the user-defined type.
<dl>
<dt class="bold">java.math.BigInteger</dt>
<dd>BIGINT
</dd>
<dt class="bold">java.lang.Integer</dt>
<dd>INTEGER
</dd>
<dt class="bold">java.lang.Short</dt>
<dd>SMALLINT
</dd>
<dt class="bold">java.math.BigDecimal</dt>
<dd>DECIMAL
</dd>
<dt class="bold">java.sql.BigDecimal</dt>
<dd>NUMERIC
</dd>
<dt class="bold">java.lang.Double</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">java.lang.Float</dt>
<dd>REAL
</dd>
<dt class="bold">java.lang.String</dt>
<dd>CHARACTER
</dd>
<dt class="bold">byte[]</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">java.lang.String</dt>
<dd>VARCHAR
</dd>
<dt class="bold">byte[]</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">java.sql.Clob</dt>
<dd>CLOB
</dd>
<dt class="bold">java.lang.String</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">java.lang.String</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">java.sql.Clob</dt>
<dd>DBCLOB
</dd>
<dt class="bold">byte[]</dt>
<dd>BINARY
</dd>
<dt class="bold">byte[]</dt>
<dd>VARBINARY
</dd>
<dt class="bold">java.sql.Blob</dt>
<dd>BLOB
</dd>
<dt class="bold">java.sql.Date</dt>
<dd>DATE
</dd>
<dt class="bold">java.sql.Time</dt>
<dd>TIME
</dd>
<dt class="bold">java.sql.Timestamp</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">java.net.URL</dt>
<dd>DATALINK
</dd>
<dt class="bold">byte[]</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">DATA_TYPE</td>
<td align="left" valign="top" headers="wq2333">SMALLINT</td>
<td align="left" valign="top" headers="wq2334">Reserved. Contains 2001.</td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">BASE_TYPE</td>
<td align="left" valign="top" headers="wq2333">SMALLINT</td>
<td align="left" valign="top" headers="wq2334">The source data type of the user-defined
data type:
<dl>
<dt class="bold">&ndash;5</dt>
<dd>BIGINT
</dd>
<dt class="bold">4</dt>
<dd>INTEGER
</dd>
<dt class="bold">5</dt>
<dd>SMALLINT
</dd>
<dt class="bold">3</dt>
<dd>DECIMAL
</dd>
<dt class="bold">2</dt>
<dd>NUMERIC
</dd>
<dt class="bold">8</dt>
<dd>DOUBLE PRECISION
</dd>
<dt class="bold">7</dt>
<dd>REAL
</dd>
<dt class="bold">1</dt>
<dd>CHARACTER
</dd>
<dt class="bold">&ndash;2</dt>
<dd>CHARACTER FOR BIT DATA
</dd>
<dt class="bold">12</dt>
<dd>VARCHAR
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARCHAR FOR BIT DATA
</dd>
<dt class="bold">2005</dt>
<dd>CLOB
</dd>
<dt class="bold">1</dt>
<dd>GRAPHIC
</dd>
<dt class="bold">12</dt>
<dd>VARGRAPHIC
</dd>
<dt class="bold">1111</dt>
<dd>DBCLOB
</dd>
<dt class="bold">&ndash;2</dt>
<dd>BINARY
</dd>
<dt class="bold">&ndash;3</dt>
<dd>VARBINARY
</dd>
<dt class="bold">2004</dt>
<dd>BLOB
</dd>
<dt class="bold">91</dt>
<dd>DATE
</dd>
<dt class="bold">92</dt>
<dd>TIME
</dd>
<dt class="bold">93</dt>
<dd>TIMESTAMP
</dd>
<dt class="bold">70</dt>
<dd>DATALINK
</dd>
<dt class="bold">1111</dt>
<dd>ROWID
</dd>
</dl></td>
</tr>
<tr>
<td align="left" valign="top" headers="wq2332">REMARKS</td>
<td align="left" valign="top" headers="wq2333">VARCHAR(2000)
<div class="lines">Nullable<br />
</div></td>
<td align="left" valign="top" headers="wq2334">A character string supplied with the COMMENT
statement.
<p>Contains the null value if there is no comment.</p></td>
</tr>
</tbody>
</table>
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstcatalogtbls.htm">Previous Page</a> | <a href="rbafzmstcatalogans.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
<a href="rbafzmstindex.htm#index">Index</a> ]
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>