Re: increment Rows in an SQL Result Set postgresql

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

 



Hassan Adekoya wrote:
> I will like to preserve ordering....

Tables are inherently unordered.  If you want a particular order, you 
need to use the ORDER BY clause.  And you will need to have a column to 
sort by.  If you don't have one, the generate_series() function may 
help.

This has nothing to do with performance, I gather, so it might be more 
appropriate for the pgsql-sql list.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux