From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Greg Brzezinski <gregb(at)amg(dot)gda(dot)pl> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: count(*) from view?? |
Date: | 2000-09-11 16:23:48 |
Message-ID: | Pine.BSF.4.10.10009110918580.11606-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
What version are you using? Current sources
give me 1 for the select count(*) from v_test;
on the same sequence.
Stephan Szabo
sszabo(at)bigpanda(dot)com
On Fri, 8 Sep 2000, Greg Brzezinski wrote:
> 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
>
> select count(*) from test where user_name = 'John';
> count
> -------
> 1
> (1 row)
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2000-09-11 16:28:05 | Re: problems with GRANT on Solaris 8 |
Previous Message | Stephan Szabo | 2000-09-11 16:18:34 | Re: Column name case conversion |