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

From: Curt Sampson <cjs(at)cynic(dot)net>
To: Don Baccus <dhogaza(at)pacifier(dot)com>
Cc: Daniel Lyons <fusion(at)nmt(dot)edu>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: OOP real life example (was Re: Why is MySQL more chosen
Date: 2002-08-12 05:51:34
Message-ID: Pine.NEB.4.44.0208121447550.2317-100000@angelic.cynic.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(at)cynic(dot)net> +81 90 7737 2974 http://www.netbsd.org
Don't you know, in this new Dark Age, we're all light. --XTC

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-08-12 05:52:49 Re: cash_out bug
Previous Message Christopher Kings-Lynne 2002-08-12 05:43:41 Re: cash_out bug