![]() | |
#11
| |||
| |||
|
|
Roy Hann wrote: Lee wrote: How can I get a list of a table's foreign keys, in Ingres 9.1? Rather annoyingly you can't get that information in a convenient form. In my eagerness to moan about how inconveniently encoded that information is, I forgot to point out the (possibly obvious) limitation that you will still only see the foreign keys that have been declared. There may well be any number of other foreign keys that are not identified as such; you just have to divine their existence or ask a savant. -- Roy UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012. * *NOTE THE CHANGED DATE* *Seewww.uk-iua.org.uk |
#12
| |||
| |||
|
|
Roy Hann wrote: Lee wrote: How can I get a list of a table's foreign keys, in Ingres 9.1? Rather annoyingly you can't get that information in a convenient form. In my eagerness to moan about how inconveniently encoded that information is, I forgot to point out the (possibly obvious) limitation that you will still only see the foreign keys that have been declared. There may well be any number of other foreign keys that are not identified as such; ... |
|
...you just have to divine their existence or ask a savant. -- Roy UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012. * *NOTE THE CHANGED DATE* *Seewww.uk-iua.org.uk |
#13
| |||
| |||
|
|
There may well be any number of other foreign keys that are not identified as such; ... Would you mind to elaborate a bit on this, Roy, please... |
#14
| |||
| |||
|
|
How can I get a list of a table's foreign keys, in Ingres 9.1? The documentation for 9.1 is no longer on line, and my client apparently has none, either. Thanks in anticipation lee |
#15
| |||
| |||
|
#16
| |||
| |||
|
|
On Jul 29, 7:00*am, Lee <lee... (AT) gmail (DOT) com> wrote: FWIW, VectorWise introduces a new catalog that records all referential relationships, 1 per row. The row contains the referenced table ID, the referencing table ID, the constraint ID and the mapping of foreign key columns to corresponding primary/unique columns. I expect it'll soon be available for native Ingres as well (10.0 or later). |
|
It is true that getting the info prior to this is a total PITA. |
#17
| |||
| |||
|
|
Roy Hann wrote: The best you can do AFAIK is: * select schema_name, table_name, text_segment * from iiconstraints * where constraint_type = 'R' ... *order by schema_name, table_name, constraint_name, text_sequence; |
![]() |
| Thread Tools | |
| Display Modes | |
| |