Re: OOP real life example (was Re: Why is MySQL more chosen

Curt Sampson <cjs@cynic.net>

From: Curt Sampson <cjs@cynic.net>
To: Don Baccus <dhogaza@pacifier.com>
Cc: Daniel Lyons <fusion@nmt.edu>, <pgsql-hackers@postgresql.org>
Date: 2002-08-12T05:51:34Z
Lists: pgsql-hackers
On Sun, 11 Aug 2002, Don Baccus wrote:

> I've been wanting to point out that SQL views are really, when
> scrutinized, "just syntactic sugar" ...

Oh? Ok, please translate the following into equivalant SQL that
does not use a view:

    CREATE TABLE t1 (key serial, value1 text, value2 text);
    CREATE VIEW v1 AS SELECT key, value1 FROM t1;
    GRANT SELECT ON v1 TO sorin;

cjs
-- 
Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
    Don't you know, in this new Dark Age, we're all light.  --XTC