Re: SQL: how to find if a table exists?

Поиск
Список
Период
Сортировка
От Mario Weilguni
Тема Re: SQL: how to find if a table exists?
Дата
Msg-id 005701c25810$29e0e200$6f01c00a@icomedias.com
обсуждение исходный текст
Ответ на SQL: how to find if a table exists?  (Jean-Christian Imbeault <totsubo2001@netscape.net>)
Список pgsql-general
> Is there an SQL statement that will allow me to query a DB to see if a
> table exists?

yes, try:
select 1 from pg_class where relkind='r' and
relname='the-name-of-your-table';



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

Предыдущее
От: Joe Murphy
Дата:
Сообщение: Re: Vacuum and indexes problem
Следующее
От: Jan Ploski
Дата:
Сообщение: Re: this is postgresql question..how do i drop unique constraint on a column?