Re: increment counter in VIEW

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Oleg <evdakov(at)iwg(dot)uka(dot)de>, pgsql-novice(at)postgresql(dot)org
Subject: Re: increment counter in VIEW
Date: 2006-07-12 15:29:47
Message-ID: 20060712152947.88707.qmail@web31804.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> Thank you very much for your link. It looks like it could do the job I want.
> Unfortunately I have problem with inserting this functionality into my VIEW
> I tried:
> CREATE OR REPLACE VIEW my_view AS SELECT
> S.a AS test,
> knoten."GEOMETRY",
> knoten.knoten,
> FROM
> generate_series(1,300) AS S(a),
> knoten knoten
> WHERE
> knoten.knoten::text = knoten_flaeche.knoten::text;
>
> Without generate_series my View produces 300 records. if I insert
> generate_series then I get 90000 because it tries all possible
> combinations with S.a. I do not know how can I limit it with WHERE.

maybe this link might help.

http://archives.postgresql.org/pgsql-sql/2006-03/msg00143.php
Regards,

Richard Broersma Jr.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Petronenko D.S. 2006-07-12 16:39:05 postgre linkage with non-postgre db
Previous Message Oleg 2006-07-12 15:03:01 Re: increment counter in VIEW