Skip site navigation (1) Skip section navigation (2)

[Fwd: views, with check option]

From: "Travis Hoyt" <thoyt(at)npc(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: [Fwd: views, with check option]
Date: 2001-10-23 19:11:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Sorry, my inital e-mail was somewhat vague.  Here's another attempt.

create view sun_r as select freemem, freeswap, time, systemid
from sardata where systemid in (select sysid from systems where platform =
'sun') and datatype = 'r' with check option;

Above is a copy of one of the views I'm trying to create.  The view, sun_r,
does a select against sardata.  The 'check option' is at the end as you can
see.  From what few examples I have seen, this would be okay.  However I
get a parse error when using the 'with check option'.  Any ideas?



Travis Hoyt wrote:

> Anyone able to get this to work?  I keep getting parse errors.  If you
> have it working, can you send me an example?  Couldn't find anything on
> the web page docs.
> Thanks,
> Travis

pgsql-novice by date

Next:From: Mark McArtheyDate: 2001-10-23 19:25:31
Subject: column length?
Previous:From: Mark McArtheyDate: 2001-10-23 17:36:28
Subject: dynamic #include's?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group