Re: systemtabllen
Posted in 2000
From: mahdoui <mahdoui@informatik.uni-kl.de>
>
>wie kann ich aus der systemtabellen einer informix-datenbank
>herausfinden
> 1- welche tabellen stehen in abhaengigkeit (referenzen)
> 2- welche attribute welcher tabelle werden referenziert ?
>
>
>z.B.
> ABTEILUNG -----------arbeitet_in -----------ARBEITER
>===>
> ABTEILUNG(ANR .. PRIMARY KEY)
> MITARBEITER(PNR ... , ANR ...., FOREIGN KEY ANR REFERENCES
>ABTEILUNG)
>herauszufinden ist dass ARBEITER.ANR ein fremdschlussel aus der tabelle
>ABTEILUNG ist!
dbschema dbname
oder
dbaccess dbname
dann
Info
cOnstraints
Reference
oder
ein schreckliche join zwischen systables, syscolumns, sysconstraints und
sysreferences.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com