Search Postgresql Archives

Re: How can I find a schema that a table belong to?

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

 



Jerry LeVan, 19.01.2011 17:35:

So I guess the question is:
    Given a bare table name, how can I recover the schema
    qualified name with whatever the current search path happens
    to be?


SELECT table_schema
FROM information_schema.tables
WHERE table_name = 'your_table'
;



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[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