Skip site navigation (1) Skip section navigation (2)

Re: count(*) of zero rows returns 1

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: David Johnston <polobo(at)yahoo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: count(*) of zero rows returns 1
Date: 2013-01-15 19:18:40
Message-ID: 20130115191840.GC27934@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackers
On Mon, Jan 14, 2013 at 10:25:39PM -0500, Gurjeet Singh wrote:
> On Mon, Jan 14, 2013 at 3:09 PM, David Johnston <polobo(at)yahoo(dot)com> wrote:
> 
>     What does "SELECT * FROM dual" in Oracle yield?
> 
> 
> AFAICR, 'dual' table has one column named 'DUMMY' and one row with value,
> single character X.

How elegant.  :-(

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +


In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2013-01-15 19:24:09
Subject: Re: [PATCH] COPY .. COMPRESSED
Previous:From: Bruce MomjianDate: 2013-01-15 19:16:38
Subject: Re: count(*) of zero rows returns 1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group