Re: temporary table

Поиск
Список
Период
Сортировка
От Amol Chiplunkar
Тема Re: temporary table
Дата
Msg-id 4BB50E41.7000000@oracle.com
обсуждение исходный текст
Ответ на temporary table  (Szymon Guz <mabewlun@gmail.com>)
Список pgsql-general
A crude way would be to put it in a block and ignore the exception

 BEGIN
        -- create temp table
    EXCEPTION
        WHEN DUPLICATE_TABLE THEN
            -- Table already exists,
            NULL;
    END;

thx
- Amol

Szymon Guz wrote:
> I want to create a temp table in a trigger... but this must be created
> max once for each transaction. I'd like to check in the trigger if the
> table exists.
> How can I check if a table is a temporary table?
>
> regards
> Szymon Guz


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Wikipedia entry - AmigaOS port - error?
Следующее
От: Glyn Astill
Дата:
Сообщение: Re: Wikipedia entry - AmigaOS port - error?