ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaik_5.4.0.1/rzaikodbccatalogfunc.htm

86 lines
4.9 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 lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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="DC.Type" content="reference" />
<meta name="DC.Title" content="Catalog functions" />
<meta name="abstract" content="Catalog functions return information about the DB2 UDB for iSeries database with which you are working." />
<meta name="description" content="Catalog functions return information about the DB2 UDB for iSeries database with which you are working." />
<meta name="DC.Relation" scheme="URI" content="rzaikodbcperfconsd.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="odbccatalogfunc" />
<meta name="DC.Language" 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. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Catalog functions</title>
</head>
<body id="odbccatalogfunc"><a name="odbccatalogfunc"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Catalog functions</h1>
<div><p>Catalog functions return information about the DB2<sup>®</sup> UDB for iSeries™ database
with which you are working.</p>
<div class="section"><p>To process ODBC <strong>SQLTables</strong> requests, logical files are built
over the server cross reference file QADBXREF in library QSYS. QADBXREF is
a database file for database-maintained cross-reference information that is
part of the dictionary function for the server.</p>
</div>
<div class="section"><p>The following are the actions for <strong>SQLTables</strong> when <strong>TableType</strong> is
set to the following: </p>
<dl><dt class="dlterm">NULL</dt>
<dd>Selects all LOGICAL and PHYSICAL files and <span class="keyword">SQL</span> TABLES
and VIEWS.</dd>
<dt class="dlterm">TABLE</dt>
<dd>Selects all PHYSICAL files, and <span class="keyword">SQL</span> TABLES
that are not server files (cross reference or data dictionary).</dd>
<dt class="dlterm">VIEW</dt>
<dd>Selects all LOGICAL files and <span class="keyword">SQL</span> VIEWS
that are not server files (cross reference or data dictionary).</dd>
<dt class="dlterm">SYSTEM TABLE</dt>
<dd>Selects all PHYSICAL and LOGICAL files and <span class="keyword">SQL</span> VIEWS
that are either server files or data dictionary files.</dd>
<dt class="dlterm">TABLE, VIEW</dt>
<dd>Selects all LOGICAL and PHYSICAL files and all <span class="keyword">SQL</span> TABLES
and VIEWS that are not server files or data dictionary files.</dd>
</dl>
</div>
<div class="section"><p>Non-relational files (files with more than one format) are not
selected. Also not selected are indexes, flat files and IDDU-defined files.</p>
</div>
<div class="section"><p>The result sets returned by the catalog functions are ordered
by table type. In addition to the TABLE and VIEW types, the iSeries server
has the data source-specific type identifiers of PHYSICAL and LOGICAL files.
The PHYSICAL type is handled as a TABLE, and the LOGICAL type is handled as
a VIEW.</p>
</div>
<div class="section"><p>To process ODBC <strong>SQLColumns</strong> requests, a logical file is
built over the server cross-reference file QADBIFLD in the QSYS library. This
logical file selects all relational database files except for indexes. QADBIFLD
is a database file for database-maintained cross-reference information that
is part of the dictionary function for the server. Specifically, this includes
database file column and field information.</p>
</div>
<div class="section"> <dl><dt class="dlterm">For additional information:</dt>
<dd>The Appendix of the <em>SQL Reference</em> book contains additional information.
View an HTML online version of the book, or print a PDF version, from the <a href="../db2/rbafzmst02.htm">DB2
Universal Database™ for iSeries SQL Reference </a> iSeries Information Center topic.</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaikodbcperfconsd.htm" title="See any of the following ODBC performance topics.">iSeries Access for Windows ODBC performance</a></div>
</div>
</div>
</body>
</html>