Re: count(*) from view??

From: Marcin Mazurek <M(dot)Mazurek(at)poznan(dot)multinet(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: count(*) from view??
Date: 2000-09-11 06:35:45
Message-ID: 20000911083545.C18997@poznan.mtl.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Brzezinski (gregb(at)amg(dot)gda(dot)pl) napisał:
> create table test (id int, user_name char(30));
> insert into test values (1, 'John');
> insert into test values (2, 'George');
> create view v_test as select * from test where user_name = 'John';
> select count(*) from v_test;
> count
> -------
> 2
> (1 row) Why?...Should returns 1
I've noticed the same.

Marcin Mazurek

--
Kierownik Działu Systemowego
MULTINET SA o/Poznan
http://www.multinet.pl/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcin Mazurek 2000-09-11 06:37:27 Re: ecpg
Previous Message Chris 2000-09-11 00:50:13 Re: Search inherited tables