<?xml version="1.0" encoding="windows-1252"?>
<node id="284496" title="Re: DBI recipes" created="2003-08-18 03:52:09" updated="2005-07-27 11:53:54">
<type id="11">
note</type>
<author id="250038">
EdwardG</author>
<data>
<field name="doctext">
&lt;p&gt;++ Very useful node, thanks gmax.&lt;/p&gt;

For the sake of portability it might also be useful to note that ANSI SQL-92 provides a standard for querying table schema information:

&lt;p&gt;&lt;code&gt;select TABLE_NAME from INFORMATION_SCHEMA.TABLES&lt;/code&gt;&lt;/p&gt;

And to give an idea of what else is available via INFORMATION_SCHEMA;&lt;br&gt;

&lt;code&gt;SCHEMATA
DOMAINS
VIEWS
COLUMNS
TABLE_PRIVILEGES
COLUMN_PRIVILEGES
USAGE_PRIVILEGES
DOMAIN_CONSTRAINTS
TABLE_CONSTRAINTS
REFERENTIAL_CONSTRAINTS
CHECK_CONSTRAINTS
KEY_COLUMN_USAGE
ASSERTIONS
VIEW_TABLE_USAGE
VIEW_COLUMN_USAGE
CONSTRAINT_TABLE_USAGE
CONSTRAINT_COLUMN_USAGE
CONSTRAINT_DOMAIN_USAGE&lt;/code&gt;

&lt;small&gt;&lt;em&gt;Source: An Introduction to Database Systems (7th edition), C.J. Date&lt;/em&gt;&lt;/small&gt;</field>
<field name="root_node">
284436</field>
<field name="parent_node">
284436</field>
</data>
</node>
