From: | Ed Loehr <ELOEHR(at)austin(dot)rr(dot)com> |
---|---|
To: | Jesse Scott <jscott(at)bmi(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] Sorting a table... |
Date: | 1999-11-30 17:05:46 |
Message-ID: | 384403EA.5D3784A9@austin.rr.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I think you're looking for the 'ORDER BY' clause to use in your SELECT, e.g.,
SELECT * FROM person ORDER BY id
More examples, options, and explanation can be found at
http://www.postgresql.org/docs/postgres/sql-select.htm
Cheers.
Ed Loehr
Jesse Scott wrote:
> ... Once the user has completed the
> editing, I perform an UPDATE on that row with the new values, but now that
> row is moved to the end of the table, making the page that lists the users
> list them out of order (one of the fields is a sequential ID number). Is
> there anyway to do a "sort by" or something similar? Or do I need to set
> the ID number to be some sort of index type?
From | Date | Subject | |
---|---|---|---|
Next Message | Stan Jacobs | 1999-11-30 17:15:34 | Re: [GENERAL] Sorting a table... |
Previous Message | kaiq | 1999-11-30 15:42:47 | Re: [GENERAL] Executing external scripts |