Re: Does this table exist?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Does this table exist?
Дата
Msg-id Pine.BSF.4.10.10011021251170.77024-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Does this table exist?  (Alvaro Herrera <alvherre@protecne.cl>)
Список pgsql-general
Well, you can do
select * from pg_class where relname='<name>'
which will tell you if there's a view/table/index
with that name.

Stephan Szabo
sszabo@bigpanda.com

On Thu, 2 Nov 2000, Alvaro Herrera wrote:

> Hi
>
> I'm Alvaro Herrera, from Chile, South America, where I study CS
> (mostly). I'm new to PostgreSQL and to SQL in general.
>
> That's for my introduction.
>
> Now, I'm building a database to hold customer data that needs to be
> organized in a one-table-per-customer manner. No, I don't think there's
> another way to do this, as these tables are potentially very big not in
> the sense that I have too many customers, but in that I need to hold
> very large amounts of data for each.
>
> Now, the question is: Is there a way to know if a given table exist?
> Besides doing a direct query to it, of course, as I think that would be
> too much of a dinamite-fishing way of doing it.
>
> Thanks in advance, and excuse my poor english if it offends you.


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

Предыдущее
От: Ashley Clark
Дата:
Сообщение: Re: Does this table exist?
Следующее
От: Warren Vanichuk
Дата:
Сообщение: Re: Does this table exist?