Re: Temporary tables

Поиск
Список
Период
Сортировка
От George A.J
Тема Re: Temporary tables
Дата
Msg-id 20031001031740.66479.qmail@web14901.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: Temporary tables  ("vijaykumar M" <m_vijaykumar@hotmail.com>)
Список pgsql-sql

Thanks to all of you for your suggestions. the problem is solved by creating a function

istableexist() that returns whether a table exist or not. the function is bellow.


CREATE FUNCTION istableexist(varchar) RETURNS bool AS '

 DECLARE

 BEGIN

     /* check the table exist in database and is visible*/
     PERFORM relname,relnamespace FROM pg_class
            WHERE relkind = ''r''
                  AND Upper(relname) = Upper($1)
                  AND pg_table_is_visible(oid);

     IF FOUND THEN
        RETURN TRUE;
     ELSE
        RETURN FALSE;
     END IF;
  
 END;'
 LANGUAGE 'plpgsql';

thanks again

jinujose


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

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

Предыдущее
От: "Suresh Basandra"
Дата:
Сообщение: Re: insert error
Следующее
От: "Rute Solipa"
Дата:
Сообщение: Unsubscribe