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>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecatalog | String | Catalog. | |||
EschemaPattern | String | Pattern of name of schema. | |||
EtableNamePattern | String | Pattern of name of table. | |||
Etype | String[] | Types of objects (array of strings). |
Returns | |
---|---|
Type | Description |
vtable |
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 | | +--------------+-----------+----------+----------+-------+