Re: updateable/insertable view having left joined tables

Поиск
Список
Период
Сортировка
От Seb
Тема Re: updateable/insertable view having left joined tables
Дата
Msg-id 87iqj1t22k.fsf@kolob.sebmags.homelinux.org
обсуждение исходный текст
Ответ на updateable/insertable view having left joined tables  (Seb <spluque@gmail.com>)
Список pgsql-sql
The following seems to work, but I don't feel confident this is really
the correct code:

CREATE RULE shoe_upd AS   ON UPDATE TO shoe   DO INSTEAD (   UPDATE shoes   SET sh_name = NEW.sh_name, sh_avail =
NEW.sh_avail  WHERE shoes.sh_id = NEW.sh_id;   INSERT INTO shoelaces (sh_id, sl_name)   SELECT New.sh_id, New.sl_name
WHERENew.sl_name IS NOT NULL;);
 

I could find out doing a number of tests, but it would be good to
understand what is going on.

-- 
Seb



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Taking the cache out of the equation?
Следующее
От: Mark Fenbers
Дата:
Сообщение: drop PW