Re: ORDERING alphabetically - Mailing list pgsql-general

From
Subject Re: ORDERING alphabetically
Date
Msg-id Pine.LNX.4.10.10008091330050.25494-100000@chapelperilous.net
Whole thread Raw
In response to ORDERING alphabetically  (abe <abe@fish.tm>)
List pgsql-general
On Wed, 9 Aug 2000, abe wrote:

> Does anyone know how to get results from a query in alphabetical order
> (for one field such as surname).  I skimmed over the documentation and
> no luck.

Use the ORDER BY clause in your query:

    SELECT surname, firstname FROM names ORDER BY surname;

Brett W. McCoy
                                         http://www.chapelperilous.net/~bmccoy/
-------------------------------------------------------------------------------
But soft you, the fair Ophelia:
Ope not thy ponderous and marble jaws,
But get thee to a nunnery -- go!
        -- Mark "The Bard" Twain


pgsql-general by date:

Previous
From: "Mike Sears"
Date:
Subject: Re: ORDERING alphabetically
Next
From: Philip Hallstrom
Date:
Subject: How to create an index using a function???