Search Postgresql Archives

Re: Querying for related tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 03, 2005 at 05:10:44PM +0000, Richard Huxton wrote:
> Craig wrote:
> >Hi
> > 
> >How can I query for all the tables that are referenced by a particular 
> >table (i.e my table has 3 foreign keys. I need a query that will return 
> >the table names of the referenced tables)?
> 
> See the chapters on the "Information Schema" (which is an SQL standard) 
> and the "system catalogs" (which are PostgreSQL specific).

See also http://pgfoundry.org/projects/newsysviews
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@xxxxxxxxxxxxx
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux