| From: | Peter Schaefer <schaefer(at)cys(dot)de> |
|---|---|
| To: | "pgsql-bugs(at)postgreSQL(dot)org" <pgsql-bugs(at)postgreSQL(dot)org> |
| Subject: | CREATE VIEW interp AS select DISTINCT itemkey from songs; |
| Date: | 1999-10-13 08:36:57 |
| Message-ID: | 380444A8.D89E8555@cys.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Excuse my weak knowledge of SQL, but this doesn't work the way I expect it to work:
codiak=> CREATE VIEW interp AS select DISTINCT ON id id from interp;
CREATE
codiak=> select id from interp where id=1063;
id
-------
1063
1063
1063
(3 rows)
codiak=> \d interp
Table = interp
+----------------------------------+----------------------------------+-------+
| Field | Type | Length|
+----------------------------------+----------------------------------+-------+
| id | int4 | 4 |
+----------------------------------+----------------------------------+-------+
--
Peter Schäfer - mailto:schaefer(at)cys(dot)de, schaefer(at)dfu(dot)de
Motto of the 3D Designer: "I am a meshed potato, I can do the twist".
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 1999-10-13 14:27:22 | Re: [BUGS] CREATE VIEW interp AS select DISTINCT itemkey from songs; |
| Previous Message | Vitaly Piniygin | 1999-10-13 05:33:58 | Re: [BUGS] Pg module "eats" environment |