Function Problem

Поиск
Список
Период
Сортировка
От Jamie Deppeler
Тема Function Problem
Дата
Msg-id 41B39AF4.4090701@doitonce.net.au
обсуждение исходный текст
Ответы Re: Function Problem
Список pgsql-general
Problem
I am trying to store value in a TEMPORARY table and I am getting the
following error

ERROR: relation with OID 51533 does not exist


Trigger
CREATE TRIGGER "createtemporytable" AFTER INSERT
ON "component" FOR EACH ROW
EXECUTE PROCEDURE "createtemp"();


Function
begin
   CREATE temporary TABLE primarykey
   (
    componentpk Integer,
    plannerpk Integer,
    materialplanpk Integer,
    resourceplanpk Integer
   );


   INSERT INTO primarykey(componentpk)
   VALUES (new."primary");

   UPDATE component
     set "notes" = 'Updated'
   where component."primary" = primarykey.componentpk;

end

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: SSL confirmation
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: SSL confirmation