MATLAB DATABASE TOOLBOX RELEASE NOTES Betriebsanweisung Seite 590

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 684
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 589
7 Functions — Alphabetical List
7-160
importedkeys
Return information about imported foreign keys
Syntax
i = importedkeys(dbmeta, 'cata', 'sch')
i = importedkeys(dbmeta, 'cata', 'sch', 'tab')
Description
i = importedkeys(dbmeta, 'cata', 'sch') returns foreign imported key
information, that is, information about fields that reference primary keys in other tables,
in the schema sch, of the catalog cata, for the database whose database metadata object
is dbmeta.
i = importedkeys(dbmeta, 'cata', 'sch', 'tab') returns foreign imported key
information in the table tab. In turn, fields in tab reference primary keys in other tables
in the schema sch, of the catalog cata, for the database whose database metadata object
is dbmeta.
Examples
Get foreign key information for the schema SCOTT in the catalog orcl, for dbmeta.
i = importedkeys(dbmeta,'orcl','SCOTT')
i =
Columns 1 through 7
'orcl' 'SCOTT' 'DEPT' 'DEPTNO' 'orcl'...
'SCOTT' 'EMP'
Columns 8 through 13
'DEPTNO' '1' 'null' '1' 'FK_DEPTNO'...
'PK_DEPT'
The results show foreign imported key information as described in the following table.
Seitenansicht 589
1 2 ... 585 586 587 588 589 590 591 592 593 594 595 ... 683 684

Kommentare zu diesen Handbüchern

Keine Kommentare