Returns a description of the columns of primary key that are referenced by foreign key columns in a table.
1 connection.metadata.getImportedKeys
<connection.metadata.getImportedKeys>
<catalog /> +
<schema /> +
<table /> +
</connection.metadata.getImportedKeys>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecatalog | String | ||||
Eschema | String | ||||
Etable | String |
Returns | |
---|---|
Type | Description |
Vtable | Vtable in which each row is a description of the primary key column. |
Example
Copy
<xsql-script name='connection_metadata.getImportedKeys'> <body> <println> <connection.metadata.getImportedKeys> <null /> <null /> <string>gman_equinsta</string> </connection.metadata.getImportedKeys> </println> </body> </xsql-script>
Copy
+--------------+-------------+------------+-------------+--------------+-------------+-------------+-------------+-------+-----------+-----------+----------------+----------+-------------+ |pktable_cat |pktable_schem|pktable_name|pkcolumn_name|fktable_cat |fktable_schem|fktable_name |fkcolumn_name|key_seq|update_rule|delete_rule|fk_name |pk_name |deferrability| +--------------+-------------+------------+-------------+--------------+-------------+-------------+-------------+-------+-----------+-----------+----------------+----------+-------------+ |demo_formacion|informix |cempresa |empcode |demo_formacion|informix |gman_equinsta|empcode | 1| 1| 1|f_gman_equinsta1|p_cempresa| 7| |demo_formacion|informix |gdeparta |delega |demo_formacion|informix |gman_equinsta|delega | 1| 1| 1|f_gman_equinsta2|p_gdeparta| 7| |demo_formacion|informix |gdeparta |depart |demo_formacion|informix |gman_equinsta|depart | 2| 1| 1|f_gman_equinsta2|p_gdeparta| 7| +--------------+-------------+------------+-------------+--------------+-------------+-------------+-------------+-------+-----------+-----------+----------------+----------+-------------+