Re: Union

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Victor Lopez" <d01m01a2000(at)gmail(dot)com>
Cc: "felipe fernandez" <ffdezrguez(at)tiscali(dot)es>, Postgresql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Union
Date: 2007-04-28 17:11:30
Message-ID: c2d9e70e0704281011g1ab7d604mf8f0554bce259c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 4/28/07, Victor Lopez <d01m01a2000(at)gmail(dot)com> wrote:
> Y vuelvo a mi pregunta ... ¿Que es mayor ... TRUE o FALSE ... para un ORDER BY?
>

postgres=# select * from (select true as col1 union all select false) as foo
order by col1 ;
col1
------
f
t
(2 rows)

postgres=# select * from (select true as col1 union all select false) as foo
order by col1 desc;
col1
------
t
f
(2 rows)

parece que true... en realidad te costaba tanto hacer la prueba?

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

  • Re: Union at 2007-04-28 16:43:03 from Victor Lopez

Responses

  • Re: Union at 2007-04-28 17:32:57 from Victor Lopez

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2007-04-28 17:20:17 Re: [GENERAL] Indice en Date
Previous Message Victor Lopez 2007-04-28 16:43:03 Re: Union