Returns a description of the available tables in the given catalog.

1 connection.metadata.getTables

<connection.metadata.getTables>
    <catalog /> +
    <schemaPattern /> +
    <tableNamePattern /> +
    <type /> +
</connection.metadata.getTables>
Example
Copy
<xsql-script name='connection_metadata.getTables_sample1'>
    <body>
        <array name='types'>
            <string>TABLE</string>
        </array>
        <println>
            <connection.metadata.getTables>
                <null />
                <null />
                <string>gcompedh</string>
                <types />
            </connection.metadata.getTables>
        </println>
    </body>
</xsql-script>
Copy
+--------------+-----------+----------+----------+-------+
|table_cat     |table_schem|table_name|table_type|remarks|
+--------------+-----------+----------+----------+-------+
|demo_training|informix   |gcompedh  |TABLE     |       |
+--------------+-----------+----------+----------+-------+