![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Lee Sent: 29 July 2011 12:01 To: info-ingres (AT) kettleriverconsulting (DOT) com Subject: [Info-Ingres] List foreign keys 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 _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#3
| |||
| |||
|
|
HELP CONSTRAINT <table_name> will list the constraints on a table, including the foreign key ones. HTH Paul -----Original Message----- From: info-ingres-boun... (AT) kettleriverconsulting (DOT) com [mailto:info- ingres-boun... (AT) kettleriverconsulting (DOT) com] On Behalf Of Lee Sent: 29 July 2011 12:01 To: info-ing... (AT) kettleriverconsulting (DOT) com Subject: [Info-Ingres] List foreign keys 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 _______________________________________________ Info-Ingres mailing list Info-Ing... (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#4
| |||
| |||
|
|
How can I get a list of a table's foreign keys, in Ingres 9.1? |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
The best you can do AFAIK is: select schema_name, table_name, text_segment from iiconstraints where constraint_type = 'R' order by constraint_name, schema_name, table_name, text_sequence; |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
Thanks, Paul, but I have to use SQL to perform this task -- via the Perl DBI. So 'HELP' is a syntax error. On Jul 29, 12:44 pm, "Paul Mason" <Paul.Ma... (AT) ingres (DOT) com> wrote: HELP CONSTRAINT <table_name> will list the constraints on a table, including the foreign key ones. HTH Paul -----Original Message----- From: info-ingres-boun... (AT) kettleriverconsulting (DOT) com [mailto:info- ingres-boun... (AT) kettleriverconsulting (DOT) com] On Behalf Of Lee Sent: 29 July 2011 12:01 To: info-ing... (AT) kettleriverconsulting (DOT) com Subject: [Info-Ingres] List foreign keys 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 _______________________________________________ Info-Ingres mailing list Info-Ing... (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#10
| |||
| |||
|
|
Then you'll have to use system catalogs. Start with these: iiintegrity, iikey, iiintegrityidx . |
![]() |
| Thread Tools | |
| Display Modes | |
| |