Search Postgresql Archives

Re: Selecting tree data

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

 





Pat Maddox wrote:
On 10/26/07, brian <brian@xxxxxxxxxxxxxxxx> wrote:




SELECT * FROM posts ORDER BY root_id, id;

brian

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

              http://archives.postgresql.org/



Okay, but what if I want to order by created_at?

btw created_at is a timestamp, I just wrote '4pm' to make it a bit
easier to read.


SELECT * FROM posts ORDER BY created_a, root_id, id;

brian

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[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