Allow ORDER BY a Function

Поиск
Список
Период
Сортировка
Искать

Allow ORDER BY a Function

От:
David Hartwig <daveh@insightdist.com>
Дата:
Bruce,

Small correction to the TODO list.    The "allow ORDER BY a function"
feature already exist in 6.4.
   EXAMPLES:
       SELECT foo FROM bar ORDER BY upper(foo);
       -- or any other expression for that matter
       SELECT foo FROM bar ORDER BY  att1 || att2;

It was done as part of the "allow GROUP BY a function" feature.


Re: [HACKERS] Allow ORDER BY a Function

От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
Updated.

> Bruce,
> 
> Small correction to the TODO list.    The "allow ORDER BY a function"
> feature already exist in 6.4.
> 
>     EXAMPLES:
> 
>         SELECT foo FROM bar ORDER BY upper(foo);
> 
>         -- or any other expression for that matter
> 
>         SELECT foo FROM bar ORDER BY  att1 || att2;
> 
> It was done as part of the "allow GROUP BY a function" feature.
> 
> 
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610) 853-3000 +  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

FAQ