Difference between revisions of "SYSIMPORTEDKEYS"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision: SQL) |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Description of the primary key columns that are referenced by the foreign key | Description of the primary key columns that are referenced by the foreign key | ||
− | |||
==See Also== | ==See Also== | ||
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]] | [[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]] | ||
− | |||
==Description== | ==Description== | ||
System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | System Tables are system defined read-only tables. You can query these tables using the SELECT statement. | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 43: | Line 40: | ||
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 50: | Line 46: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:System Tables]] | [[Category:System Tables]] |
Revision as of 10:56, 7 December 2012
Contents
Purpose
Description of the primary key columns that are referenced by the foreign key
See Also
DATA TYPES, SELECT, SYSTEM TABLES
Description
System Tables are system defined read-only tables. You can query these tables using the SELECT statement.
Column | Data Type | Width | Description |
---|---|---|---|
PKTABLE_CAT | C | 30 | Primary key table catalog being imported |
PKTABLE_SCHEM | C | 30 | Primary key table schema being imported |
PKTABLE_NAME | C | 30 | Primary key table name being imported |
PKCOLUMN_NAME | C | 30 | Primary key column name being imported |
FKTABLE_CAT | C | 30 | Foreign key table catalog |
FKTABLE_SCHEM | C | 30 | Foreign key table schema |
FKTABLE_NAME | C | 30 | Foreign key table name |
FKCOLUMN_NAME | C | 30 | Foreign key column name |
KEY_SEQ | N | 2 | Sequence number within foreign key |
UPDATE_RULE | N | 2 | What happens to foreign key when primary is updated |
DELETE_RULE | N | 2 | What happens to the foreign key when primary is deleted |
FK_NAME | C | 30 | Foreign key name |
PK_NAME | C | 30 | Primary key name |
DEFERRABILITY | N | 2 | Can the evaluation of foreign key constraints be deferred until commit? |
Example
SELECT * FROM sysimportedkeys