Re: HELP

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Juanky Moral <juanky(dot)moral(at)gmail(dot)com>
Cc: Jaime Casanova <systemguards(at)gmail(dot)com>, Carlos Alberto Mÿffffffffffe1rquez Rey <carlos_marquez_rey(at)yahoo(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: HELP
Date: 2005-03-30 21:01:31
Message-ID: 20050330210131.GA31123@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Wed, Mar 30, 2005 at 10:53:14PM +0200, Juanky Moral wrote:
> Los valores NULL no son tenidos en cuenta por los operadores SQL
> (lógicos, aritméticos, de comparación, orden, etc).

????

alvherre=# select null is null;
?column?
----------
t
(1 fila)

alvherre=# create table a (a int);
CREATE TABLE
alvherre=# insert into a values (2);
INSERT 17244 1
alvherre=# insert into a values (1);
INSERT 17245 1
alvherre=# insert into a values (null);
INSERT 17246 1
alvherre=# select * from a;
a
---
2
1

(3 filas)

alvherre=# select * from a order by a is null, a;
a
---
1
2

(3 filas)

alvherre=# select * from a order by a is not null, a;
a
---

1
2
(3 filas)

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Everybody understands Mickey Mouse. Few understand Hermann Hesse.
Hardly anybody understands Einstein. And nobody understands Emperor Norton."

In response to

  • Re: HELP at 2005-03-30 20:53:14 from Juanky Moral

Responses

  • Re: HELP at 2005-03-31 09:04:45 from Juanky Moral

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2005-03-30 21:04:22 Re: coneccion Sockets
Previous Message EDgp 2005-03-30 20:56:36 coneccion Sockets