Search Postgresql Archives

Re: Ordering Results by a Supplied Order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, thanks ^^

Cheers,
Rémi-C


2014-02-06 Vik Fearing <vik.fearing@xxxxxxxxxx>:
On 02/06/2014 10:00 AM, Rémi Cura wrote:
> Hey,
>  I don"t understand the difference between this ORDINALITY option and
> adding a "row_number() over()" in the SELECT.

WITH ORDINALITY will give you something to order by.  You should never
do "row_number() over ()" because that will give you potentially random
results.

--
Vik



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux