Re: Finding out table names

Поиск
Список
Период
Сортировка
От tjk@tksoft.com
Тема Re: Finding out table names
Дата
Msg-id 200004192022.NAA24872@uno.tksoft.com
обсуждение исходный текст
Ответ на Finding out table names  (Kristen Nostrand <kdnostr@california.sandia.gov>)
Список pgsql-sql
Kristen,

Here's what I use.

SELECT relname FROM pg_class WHERE relkind='r' and relname NOT LIKE 'pg_%' order by relname

Obviously, if you have tables which start with "pg_," then this solution
is not going to work.

I don't know how orthodox this solution is, or whether there are
serious problems with it. Maybe we'll find out now.


Troy





>
> I'm doing some database programming using Java/JDBC.  I'd
> like to know how to find the table names contained in a
> database/schema.  Is there an SQL statement for doing that?
>
> Kristen
>

В списке pgsql-sql по дате отправления:

Предыдущее
От: Kristen Nostrand
Дата:
Сообщение: Finding out table names
Следующее
От: "Tim Johnson"
Дата:
Сообщение: Re: GROUPING and ORDERING and CONFUSION