Difference between revisions of "SYSEXPORTEDKEYS"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SYSEXPORTEDKEYS=
 
 
 
==Class==
 
SQL Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Description of the foreign key columns that reference the primary key columns
 
Description of the foreign key columns that reference the primary key columns
Line 11: Line 4:
  
 
==See Also==
 
==See Also==
[[DATA TYPES]], [[SQL SELECT|SELECT]], [[SYSTEM TABLES]]
+
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
  
  
Line 54: Line 47:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
EXEC SQL
+
SELECT * FROM sysexportedkeys
SELECT *
+
FROM sysexportedkeys;
+
 
</code>
 
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:System Tables]]
 
[[Category:System Tables]]

Latest revision as of 16:47, 22 December 2009

Purpose

Description of the foreign key columns that reference the primary key columns


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
PKTABLE_SCHEM C 30 Primary key table schema
PKTABLE_NAME C 30 Primary key table name
PKCOLUMN_NAME C 30 Primary key column name
FKTABLE_CAT C 30 Foreign key table catalog being exported
FKTABLE_SCHEM C 30 Foreign key table schema being exported
FKTABLE_NAME C 30 Foreign key table name being exported
FKCOLUMN_NAME C 30 Foreign key column name being exported
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 sysexportedkeys


Products

Recital, Recital Server