Re: COUNT

From: "Lic(dot) Martin Marques" <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Javier Estévez CIFA Córdoba <javier(dot)estevez(dot)ext(at)juntadeandalucia(dot)es>
Cc: Jaime Casanova <systemguards(at)gmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: COUNT
Date: 2006-02-27 11:35:04
Message-ID: Pine.LNX.4.61.0602270834360.5361@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Mon, 27 Feb 2006, Javier Estévez CIFA Córdoba wrote:

> Lo he probado y no me funciona: mi campo es un count(*) y al hacer
> sum(count(*)) me da error.
>
> De todas formas si count(*) devuelve valores mayor o igual que cero...
> me podría valer, pero creo que no es así, cuando es 0 no devuelve nada.

hhuuuu???

prueba=> SELECT * FROM usuarios;
codigo | persona | perfil
--------+---------+--------
(0 filas)

prueba=> SELECT count(*) FROM usuarios;
count
-------
0
(1 fila)

--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------

In response to

  • Re: COUNT at 2006-02-27 10:47:39 from Javier Estévez CIFA Córdoba

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2006-02-27 12:06:24 Re: Acentos,tildes y eñes en postgres
Previous Message Javier Estévez CIFA Córdoba 2006-02-27 10:47:39 Re: COUNT