Using PostgreSQL version 8.3.0:
For various reasons, I have a number of VIEWs that are (except for the
schema/table/view names) automatically generated as identity mappings of
corresponding TABLEs; eg:
CREATE VIEW public.yyy AS SELECT * FROM private.zzz;
Since we don't have updatable VIEWS
"Dean Gibson (DB Administrator)" writes:
> So, I tried:
> CREATE RULE _update AS ON UPDATE TO public.yyy DO INSTEAD
> (DELETE FROM private.zzz WHERE key_field = OLD.key_field;
>INSERT INTO private.zzz VALUES( NEW.*) );
Nope, won't work, standard gotcha for rules newbies. As soon as you
de
On Saturday 02 May 2009 06:34:57 pm Craig Ringer wrote:
> johnf wrote:
> > I have a list (or array) of primary keys stored in a field (data type
> > text). I would like to use the list to retrieve all the data from a table
> > based on the list.
> >
> > my text field contains:
> > '123,134,343,345